de.smartics.properties.spi.config.cache
Interface Cache<K,V>

Package class diagram package Cache
Type Parameters:
K - the type variable for the key.
V - the type variablefor the value.
All Superinterfaces:
UnawareCache<K,V>
All Known Implementing Classes:
AmnesiaCache, InMemoryCache

public interface Cache<K,V>
     
     
extends UnawareCache<K,V>

The cache interface for all caches for smartics properties. It adds the awareness for its size and its keys.


Method Summary
 Set<K> keySet()
          Returns a set of all keys in the cache.
 long size()
          Fetch the size of the cache.
 
Methods inherited from interface de.smartics.properties.spi.config.cache.UnawareCache
get, put, put, put, remove
 

Method Detail

size

long size()
Fetch the size of the cache.

Returns:
the number of elements in the cache.

keySet

Set<K> keySet()
Returns a set of all keys in the cache.

Returns:
the set of all keys.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.