public class CacheWrap extends Object implements org.noear.wood.cache.ICacheServiceEx, org.noear.solon.data.cache.CacheService
| Constructor and Description |
|---|
CacheWrap(org.noear.wood.cache.ICacheServiceEx real) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key)
Deprecated.
2.5
|
<T> T |
get(String key,
Class<T> clz) |
<T> T |
get(String key,
Type toType) |
String |
getCacheKeyHead() |
int |
getDefalutSeconds() |
void |
remove(String key) |
void |
store(String key,
Object obj,
int seconds) |
static CacheWrap |
wrap(org.noear.wood.cache.ICacheServiceEx cache) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static CacheWrap wrap(org.noear.wood.cache.ICacheServiceEx cache)
public void store(String key, Object obj, int seconds)
store in interface org.noear.solon.data.cache.CacheServicestore in interface org.noear.wood.cache.ICacheService@Deprecated public Object get(String key)
get in interface org.noear.wood.cache.ICacheServicepublic <T> T get(String key, Type toType)
get in interface org.noear.solon.data.cache.CacheServiceget in interface org.noear.wood.cache.ICacheServicepublic <T> T get(String key, Class<T> clz)
get in interface org.noear.solon.data.cache.CacheServiceget in interface org.noear.wood.cache.ICacheServicepublic void remove(String key)
remove in interface org.noear.solon.data.cache.CacheServiceremove in interface org.noear.wood.cache.ICacheServicepublic int getDefalutSeconds()
getDefalutSeconds in interface org.noear.wood.cache.ICacheServicepublic String getCacheKeyHead()
getCacheKeyHead in interface org.noear.wood.cache.ICacheServiceCopyright © 2025. All rights reserved.