Package play.cache
Class EhCacheImpl
- java.lang.Object
-
- play.cache.EhCacheImpl
-
- All Implemented Interfaces:
CacheImpl
public class EhCacheImpl extends java.lang.Object implements CacheImpl
EhCache implementation.Ehcache is an open source, standards-based cache used to boost performance, offload the database and simplify scalability. Ehcache is robust, proven and full-featured and this has made it the most widely-used Java-based cache.
Expiration is specified in seconds- See Also:
- http://ehcache.org/
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddelete(java.lang.String key)java.lang.Objectget(java.lang.String key)static EhCacheImplgetInstance()static EhCacheImplnewInstance()voidset(java.lang.String key, java.lang.Object value, int expiration)voidstop()
-
-
-
Method Detail
-
getInstance
public static EhCacheImpl getInstance()
-
newInstance
public static EhCacheImpl newInstance()
-
delete
public void delete(@Nonnull java.lang.String key)
-
get
@Nullable public java.lang.Object get(@Nonnull java.lang.String key)
-
set
public void set(@Nonnull java.lang.String key, java.lang.Object value, int expiration)
-
-