org.shiftone.cache.policy.single
Class SingleCacheFactory
java.lang.Object
org.shiftone.cache.policy.single.SingleCacheFactory
- All Implemented Interfaces:
- CacheFactory
- public class SingleCacheFactory
- extends java.lang.Object
- implements CacheFactory
Creates a simple cache that holds only one key/value.
This cache type can be useful for storing a fairly static but still database driven list,
such as a list of countries.
Obviously, this cache doesn't require a very complex implementation. If a cache
will only ever have one value, then this will be the most efficient implementation.
- Version:
- $Revision: 1.7 $
- Author:
- Jeff Drost
Method Summary |
Cache |
newInstance(java.lang.String cacheName,
long timeoutMilliSeconds,
int maxSize)
Method newInstance |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SingleCacheFactory
public SingleCacheFactory()
newInstance
public Cache newInstance(java.lang.String cacheName,
long timeoutMilliSeconds,
int maxSize)
- Method newInstance
- Specified by:
newInstance
in interface CacheFactory
toString
public java.lang.String toString()