Class KVCacheable<V>

java.lang.Object
br.ufsc.labsec.commons.utils.cache.KVCacheable<V>
Type Parameters:
V -
All Implemented Interfaces:
Cacheable, org.bouncycastle.util.Encodable
Direct Known Subclasses:
KVCacheable.ByteArrayCacheable, KVCacheable.EncodableCacheable, KVCacheable.StringCacheable, PKCS12CertificateCollectionImpl.CertificateCacheable

public abstract class KVCacheable<V> extends Object implements Cacheable
Key-Value Cacheable, uma implementação genérica de Cacheable
  • Constructor Details

    • KVCacheable

      public KVCacheable(String key, V value)
  • Method Details

    • getCacheKey

      public String getCacheKey()
      Description copied from interface: Cacheable
      Retorna a chave que o objeto da cache está sendo identificado no mapeamento para o objeto em disco e em memória.
      Specified by:
      getCacheKey in interface Cacheable
      Returns:
      A chave do objeto
    • setCacheKey

      public void setCacheKey(String cacheKey)
    • getValue

      public V getValue()