namespace Znyc.CloudCar.Auth.Manual
{
///
/// 手动缓存操作接口
///
public interface IManualCacheManager
{
///
/// 验证缓存项是否存在
///
/// 缓存Key
///
bool Exists(string key);
///
/// 添加缓存
///
/// 缓存Key
/// 缓存Value
/// 缓存时长(分钟)
///
bool Set(string key, object value, int expiresIn = 0);
///
/// 删除缓存
///
/// 缓存Key
///
void Remove(string key);
///
/// 批量删除缓存
///
///
void RemoveAll(IEnumerable keys);
///
/// 获取缓存
///
/// 缓存Key
///
T Get(string key);
///
/// 获取缓存
///
/// 缓存Key
///
object Get(string key);
///
/// 获取缓存集合
///
/// 缓存Key集合
///
IDictionary GetAll(IEnumerable keys);
///
/// 删除所有缓存
///
void RemoveCacheAll();
///
/// 删除匹配到的缓存
///
///
///
void RemoveCacheRegex(string pattern);
///
/// 搜索 匹配到的缓存
///
///
///
IList SearchCacheRegex(string pattern);
}
}