public class WebCacheScopeProcessor extends Object implements ICacheScopeProcessor
| Constructor and Description |
|---|
WebCacheScopeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
CacheElement |
getFromCache(ICaches caches,
ICaches.Scope scope,
String cacheName,
String cacheKey)
从缓存中获取由cacheName指定的缓存对象
|
void |
putInCache(ICaches caches,
ICaches.Scope scope,
String cacheName,
String cacheKey,
CacheElement cacheElement)
将对象放入缓存
|
public CacheElement getFromCache(ICaches caches, ICaches.Scope scope, String cacheName, String cacheKey) throws CacheException
ICacheScopeProcessorgetFromCache in interface ICacheScopeProcessorcaches - 缓存scope - 缓存作用域cacheName - 缓存名称cacheKey - 缓存KEYCacheException - 可能产生的异常public void putInCache(ICaches caches, ICaches.Scope scope, String cacheName, String cacheKey, CacheElement cacheElement) throws CacheException
ICacheScopeProcessorputInCache in interface ICacheScopeProcessorcaches - 缓存scope - 缓存作用域cacheName - 缓存名称cacheKey - 缓存KEYcacheElement - 缓存对象CacheException - 可能产生的异常Copyright © 2022. All rights reserved.