java.lang.Object
com.erudika.para.core.cache.MockCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Do we have this object in the cache?boolean
Do we have this object in the cache?<T> T
Read an object from cache.<T> T
Read 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> void
Store an object in the cache.<T> void
Store an object in the cache.<T> void
Store an object in the cache.<T> void
Store all objects in cache, except those which are null.<T> void
Store all objects in cache, except those which are null.void
Remove an object from cache.void
Remove an object from cache.void
Clears the cache.void
Clears the cache.void
Remove a number of objects from cache given a list of their ids.void
Remove 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:Cache
Store an object in the cache. -
put
Description copied from interface:Cache
Store an object in the cache.- Specified by:
put
in 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:Cache
Store all objects in cache, except those which are null. -
get
Description copied from interface:Cache
Read an object from cache. -
getAll
Description copied from interface:Cache
Read a number of objects given a list of their ids. -
remove
-
removeAll
-
removeAll
-
contains
-
put
-
putAll
-
get
-
getAll
Description copied from interface:Cache
Read a number of objects given a list of their ids. -
remove
-
removeAll
-
removeAll
-