LRUCacheStorageDelegate Class Reference

Inherits com::thimbleware::jmemcached::CacheStorage.

Collaboration diagram for LRUCacheStorageDelegate:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void clear ()
long count ()
MCElement get (String keystring)
long getMaximumSize ()
long getSize ()
Set< Stringkeys ()
 LRUCacheStorageDelegate (int maxSize, long maxBytes, long ceilingSize)
void put (String keystring, MCElement el, int data_length)
void remove (String keystring)

Private Attributes

LRUCache< String, MCElementcache


Detailed Description

A delegate around the internal thread-safe LRUCache implementation.

Constructor & Destructor Documentation

LRUCacheStorageDelegate ( int  maxSize,
long  maxBytes,
long  ceilingSize 
)


Member Function Documentation

void clear (  ) 

Flush all entries from the cache

Implements CacheStorage.

long count (  ) 

Returns:
how many entries are in the cache

Implements CacheStorage.

MCElement get ( String  keystring  ) 

Retrieve an element from the cache. The retriever is responsible for counting hits, managing expirations, etc.

Parameters:
keystring the key identifying the entry
Returns:
a cache element

Implements CacheStorage.

long getMaximumSize (  ) 

Returns:
the maximum capacity (in bytes) of the cache

Implements CacheStorage.

long getSize (  ) 

Returns:
the total count (in bytes) of all the elements in the cache

Implements CacheStorage.

Set<String> keys (  ) 

Returns:
the list of keys currently managed in the cache

Implements CacheStorage.

void put ( String  keystring,
MCElement  el,
int  data_length 
)

Put an entry into the cache or replace an existing entry.

Parameters:
keystring the key identifying the entry
el the element to place in the cache
data_length 

Implements CacheStorage.

void remove ( String  keystring  ) 

Remove an entry from the cache

Parameters:
keystring the key to lookup

Implements CacheStorage.


Member Data Documentation

LRUCache<String, MCElement> cache [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:31 2012 for Project Wonder by  doxygen 1.5.8