|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.simpleds.cache.NullCacheManagerImpl
public class NullCacheManagerImpl
A non-caching CacheManager implementation. Using this class will effectively disable caching.
| Field Summary |
|---|
| Fields inherited from interface org.simpleds.cache.CacheManager |
|---|
MEMCACHE_NAMESPACE |
| Constructor Summary | |
|---|---|
NullCacheManagerImpl()
|
|
| Method Summary | ||
|---|---|---|
void |
delete(java.util.Collection<? extends java.io.Serializable> keys)
Delete contents from the cache |
|
void |
delete(com.google.appengine.api.datastore.Key key)
Remove an entity from the cache |
|
|
get(com.google.appengine.api.datastore.Key key,
ClassMetadata metadata)
Check the level 1 and level 2 cache for the required value. |
|
java.util.Map<com.google.appengine.api.datastore.Key,java.lang.Object> |
get(com.google.common.collect.Multimap<ClassMetadata,com.google.appengine.api.datastore.Key> keys)
Retrieve a set of entities from the cache |
|
|
get(java.lang.String key)
Return the cached query data, if available |
|
void |
put(com.google.common.collect.ListMultimap<ClassMetadata,java.lang.Object> javaObjects,
com.google.common.collect.ListMultimap<ClassMetadata,com.google.appengine.api.datastore.Entity> dsEntities)
Put a collection of java objects in the cache |
|
void |
put(java.lang.Object instance,
com.google.appengine.api.datastore.Entity entity,
ClassMetadata metadata)
Put an instance in the cache |
|
void |
put(java.lang.String cacheKey,
java.lang.Object value,
int seconds)
Store query data into the cache |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullCacheManagerImpl()
| Method Detail |
|---|
public void delete(com.google.appengine.api.datastore.Key key)
CacheManager
delete in interface CacheManagerkey - the key to remove
public <T> T get(com.google.appengine.api.datastore.Key key,
ClassMetadata metadata)
CacheManager
get in interface CacheManagerkey - the key of the persistent entity to return
public void put(java.lang.Object instance,
com.google.appengine.api.datastore.Entity entity,
ClassMetadata metadata)
CacheManager
put in interface CacheManagerinstance - the java objectentity - the datastore-equivalent Entity instancemetadata - the ClassMetadata instance for this entitypublic void delete(java.util.Collection<? extends java.io.Serializable> keys)
CacheManager
delete in interface CacheManagerkeys - the keys to removepublic <T> T get(java.lang.String key)
CacheManager
get in interface CacheManagerkey - the key to retrieve
public void put(java.lang.String cacheKey,
java.lang.Object value,
int seconds)
CacheManager
put in interface CacheManagercacheKey - the key of the queryvalue - the value to storeseconds - the number of seconds to store in the cache, 0 to use only the Level 1 cachepublic java.util.Map<com.google.appengine.api.datastore.Key,java.lang.Object> get(com.google.common.collect.Multimap<ClassMetadata,com.google.appengine.api.datastore.Key> keys)
CacheManager
get in interface CacheManagerkeys - the keys to retrieve from the cache
public void put(com.google.common.collect.ListMultimap<ClassMetadata,java.lang.Object> javaObjects,
com.google.common.collect.ListMultimap<ClassMetadata,com.google.appengine.api.datastore.Entity> dsEntities)
CacheManager
put in interface CacheManagerjavaObjects - the persistent objects to put into the Level 1 cachedsEntities - the list of entities to put into the Level 2 cache
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||