org.bluesock.bluemud.driver
Class LazyCache
java.lang.Object
|
+--org.bluesock.bluemud.driver.LazyCache
- public class LazyCache
- extends java.lang.Object
This is a quickie cache thing that should probably be
fleshed out later. It allows us to cache files--like
password files and such.
Might want to put in expiration and such. Later though.
Method Summary |
boolean |
contains(java.lang.String key)
Will tell you whether the cache contains the key
you're asking it about. |
java.lang.Object |
get(java.lang.String key)
Retrieves something from the cache. |
static LazyCache |
instance()
Fetches the LazyCache singleton. |
void |
put(java.lang.String key,
java.lang.Object ob)
Adds something to the cache. |
java.lang.Object |
remove(java.lang.String key)
Removes something from the cache. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyCache
public LazyCache()
instance
public static LazyCache instance()
- Fetches the LazyCache singleton.
get
public java.lang.Object get(java.lang.String key)
- Retrieves something from the cache.
remove
public java.lang.Object remove(java.lang.String key)
- Removes something from the cache.
put
public void put(java.lang.String key,
java.lang.Object ob)
- Adds something to the cache.
contains
public boolean contains(java.lang.String key)
- Will tell you whether the cache contains the key
you're asking it about.
docs generated on Thu Jan 24 08:57:26 CST 2002