hunt.security.util.Cache

Undocumented in source.

Members

Classes

Cache
class Cache(K, V)

Abstract base class and factory for caches. A cache is a key-value mapping. It has properties that make it more suitable for caching than a Map.

EqualByteArray
class EqualByteArray

Utility class that wraps a byte array and implements the equals() and hashCode() contract in a way suitable for Maps and caches.

MemoryCache
class MemoryCache(K, V)
NullCache
class NullCache(K, V)
Undocumented in source.

Static functions

newHardMemoryCache
Cache!(K, V) newHardMemoryCache(int size)

Return a new memory cache with the specified maximum size, unlimited lifetime for entries, with the values held by standard references.

newHardMemoryCache
Cache!(K, V) newHardMemoryCache(int size, int timeout)

Return a new memory cache with the specified maximum size, the specified maximum lifetime (in seconds), with the values held by standard references.

newNullCache
Cache!(K, V) newNullCache()

Return a dummy cache that does nothing.

newSoftMemoryCache
Cache!(K, V) newSoftMemoryCache(int size)

Return a new memory cache with the specified maximum size, unlimited lifetime for entries, with the values held by SoftReferences.

newSoftMemoryCache
Cache!(K, V) newSoftMemoryCache(int size, int timeout)

Return a new memory cache with the specified maximum size, the specified maximum lifetime (in seconds), with the values held by SoftReferences.

Meta