com.spoledge.audao.db.dao
Interface DtoCache<K,V>

All Known Implementing Classes:
ChainedDtoCache, ExpiringMemcacheDtoCacheImpl, ExpiringMemoryDtoCacheImpl, MemcacheDtoCacheImpl, MemoryDtoCacheImpl

public interface DtoCache<K,V>

This is an abstract cache used for caching DTOs. A DTO can be cached by its primary key or by a query key. The value can be a single DTO or an array/list of DTOs.


Method Summary
 void clear()
          Clears the cache.
 V get(K key)
          Returns the associated object or null.
 void put(K key, V value)
          Puts the key/value pair into the cache.
 void remove(K key)
          Removes the associated object.
 

Method Detail

get

V get(K key)
Returns the associated object or null.


put

void put(K key,
         V value)
Puts the key/value pair into the cache.


remove

void remove(K key)
Removes the associated object.


clear

void clear()
Clears the cache.



Copyright © 2010 Spolecne s.r.o. All Rights Reserved.