cn.dreampie.cache.redis
类 RedisProvider
java.lang.Object
cn.dreampie.cache.CacheProvider
cn.dreampie.cache.redis.RedisProvider
public class RedisProvider
- extends CacheProvider
Created by Dreampie on 15/4/24.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RedisProvider
public RedisProvider()
getCache
public <T> T getCache(String group,
String key)
- 从类
CacheProvider 复制的描述
- Returns a cached item. Can return null if not found.
- 指定者:
- 类
CacheProvider 中的 getCache
- 参数:
group - group of caches - this is a name of a table for which query results are cachedkey - key of the item.
- 返回:
- a cached item. Can return null if not found.
addCache
public void addCache(String group,
String key,
Object cache,
int expired)
- 指定者:
- 类
CacheProvider 中的 addCache
removeCache
public void removeCache(String group,
String key)
- 从类
CacheProvider 复制的描述
- remove item from cache.
- 指定者:
- 类
CacheProvider 中的 removeCache
- 参数:
group - group name of cache.key - key of the item.
doFlush
public void doFlush(CacheEvent event)
- 指定者:
- 类
CacheProvider 中的 doFlush
Copyright © 2015. All rights reserved.