Class MockCache
java.lang.Object
com.erudika.para.core.cache.MockCache
- All Implemented Interfaces:
Cache
- Author:
- Alex Bogdanovski [[email protected]]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean/////////////////////////////////////////////////booleanDo we have this object in the cache?<T> TRead an object from cache.<T> TRead an object from cache.Read a number of objects given a list of their ids.Read a number of objects given a list of their ids.<T> voidStore an object in the cache.<T> voidStore an object in the cache.<T> voidStore an object in the cache.<T> voidStore all objects in cache, except those which are null.<T> voidStore all objects in cache, except those which are null.voidRemove an object from cache.voidRemove an object from cache.voidClears the cache.voidClears the cache.voidRemove a number of objects from cache given a list of their ids.voidRemove a number of objects from cache given a list of their ids.
-
Constructor Details
-
MockCache
public MockCache()
-
-
Method Details
-
contains
-
put
Description copied from interface:CacheStore an object in the cache. -
put
Description copied from interface:CacheStore an object in the cache.- Specified by:
putin interfaceCache- Type Parameters:
T- the type of object to be cached- Parameters:
appid- the name of the applicationid- the object's id, not null or emptyobject- the object itself, not nullttlSeconds- the time to live for an object before it is evicted from the cache.- See Also:
-
putAll
Description copied from interface:CacheStore all objects in cache, except those which are null. -
get
Description copied from interface:CacheRead an object from cache. -
getAll
Description copied from interface:CacheRead a number of objects given a list of their ids. -
remove
-
removeAll
-
removeAll
-
contains
-
put
-
putAll
-
get
-
getAll
Description copied from interface:CacheRead a number of objects given a list of their ids. -
remove
-
removeAll
-
removeAll
-