public class MemCacheManager extends Object implements CacheManager
Title: 常用代码打包
Description: Central cache management of all caches used by diferent application. Cache sizes are stored as the following common property values:
Copyright: Copyright (c) 2013
Company: www.justdos.net
| 构造器和说明 |
|---|
MemCacheManager(String configKey)
Creates a new cache manager.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Cache |
createCache(String name,
int maxCacheSize,
long maxLifetime)
create cache with specified cacheSize and lifeTime
|
Map |
getAllCache()
Returns all caches that this this manager contained.
|
Cache |
getCache(String cacheKey)
Gets Cache object for certain application with cacheKey
|
boolean |
isCacheEnabled()
Returns true if cache is globally enabled.
|
public MemCacheManager(String configKey)
public Cache createCache(String name, int maxCacheSize, long maxLifetime)
createCache 在接口中 CacheManagername - maxCacheSize - maxLifetime - public Cache getCache(String cacheKey)
getCache 在接口中 CacheManagerpublic Map getAllCache()
getAllCache 在接口中 CacheManagerpublic boolean isCacheEnabled()
isCacheEnabled 在接口中 CacheManagerCopyright © 2023 onecode. All rights reserved.