|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.jwebkit.cache.MemcachedCacheProvider
public class MemcachedCacheProvider
Cache provider that stores stuff in memcached.
| Constructor Summary | |
|---|---|
MemcachedCacheProvider()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Tear down. |
CacheEntry |
getEntry(java.lang.String key)
Get the cache entry for the given key. |
void |
init(javax.servlet.FilterConfig conf)
Initialize with the given filter config. |
void |
setEntry(java.lang.String key,
CacheEntry ce,
long cacheTime)
Store a cache entry for the given key. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemcachedCacheProvider()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig conf)
throws javax.servlet.ServletException
CacheProvider
init in interface CacheProviderjavax.servlet.ServletExceptionpublic void destroy()
CacheProvider
destroy in interface CacheProviderpublic CacheEntry getEntry(java.lang.String key)
CacheProvider
getEntry in interface CacheProviderkey - the cache key
public void setEntry(java.lang.String key,
CacheEntry ce,
long cacheTime)
CacheProvider
setEntry in interface CacheProviderkey - the key under which to store the entryce - the entry to storecacheTime - how long the item should be considered valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||