play.cache
类 EhCacheImpl

java.lang.Object
  继承者 play.cache.EhCacheImpl
所有已实现的接口:
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

方法摘要
 void add(java.lang.String key, java.lang.Object value, int expiration)
           
 void clear()
           
 long decr(java.lang.String key, int by)
           
 void delete(java.lang.String key)
           
 java.lang.Object get(java.lang.String key)
           
 java.util.Map<java.lang.String,java.lang.Object> get(java.lang.String[] keys)
           
static EhCacheImpl getInstance()
           
 long incr(java.lang.String key, int by)
           
static EhCacheImpl newInstance()
           
 void replace(java.lang.String key, java.lang.Object value, int expiration)
           
 boolean safeAdd(java.lang.String key, java.lang.Object value, int expiration)
           
 boolean safeDelete(java.lang.String key)
           
 boolean safeReplace(java.lang.String key, java.lang.Object value, int expiration)
           
 boolean safeSet(java.lang.String key, java.lang.Object value, int expiration)
           
 void set(java.lang.String key, java.lang.Object value, int expiration)
           
 void stop()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getInstance

public static EhCacheImpl getInstance()

newInstance

public static EhCacheImpl newInstance()

add

public void add(java.lang.String key,
                java.lang.Object value,
                int expiration)
指定者:
接口 CacheImpl 中的 add

clear

public void clear()
指定者:
接口 CacheImpl 中的 clear

decr

public long decr(java.lang.String key,
                 int by)
指定者:
接口 CacheImpl 中的 decr

delete

public void delete(java.lang.String key)
指定者:
接口 CacheImpl 中的 delete

get

public java.lang.Object get(java.lang.String key)
指定者:
接口 CacheImpl 中的 get

get

public java.util.Map<java.lang.String,java.lang.Object> get(java.lang.String[] keys)
指定者:
接口 CacheImpl 中的 get

incr

public long incr(java.lang.String key,
                 int by)
指定者:
接口 CacheImpl 中的 incr

replace

public void replace(java.lang.String key,
                    java.lang.Object value,
                    int expiration)
指定者:
接口 CacheImpl 中的 replace

safeAdd

public boolean safeAdd(java.lang.String key,
                       java.lang.Object value,
                       int expiration)
指定者:
接口 CacheImpl 中的 safeAdd

safeDelete

public boolean safeDelete(java.lang.String key)
指定者:
接口 CacheImpl 中的 safeDelete

safeReplace

public boolean safeReplace(java.lang.String key,
                           java.lang.Object value,
                           int expiration)
指定者:
接口 CacheImpl 中的 safeReplace

safeSet

public boolean safeSet(java.lang.String key,
                       java.lang.Object value,
                       int expiration)
指定者:
接口 CacheImpl 中的 safeSet

set

public void set(java.lang.String key,
                java.lang.Object value,
                int expiration)
指定者:
接口 CacheImpl 中的 set

stop

public void stop()
指定者:
接口 CacheImpl 中的 stop


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly