public class EmptyCacheService extends Object implements CacheService
| 构造器和说明 |
|---|
EmptyCacheService() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
get(String key,
Type type)
获取
|
void |
remove(String key)
移除
|
void |
store(String key,
Object obj,
int seconds)
保存
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getOrStorepublic void store(String key, Object obj, int seconds)
CacheServicestore 在接口中 CacheServicekey - 缓存键obj - 对象seconds - 秒数public void remove(String key)
CacheServiceremove 在接口中 CacheServicekey - 缓存键public <T> T get(String key, Type type)
CacheServiceget 在接口中 CacheServicekey - 缓存键Copyright © 2024. All rights reserved.