using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KC.Cache
{
///
/// 缓存基础接口
///
public interface ICache
{
///
/// 写入缓存,单体
///
/// 对象数据
/// 键
/// 几秒过期
void WriteCache(string cacheKey, T value, int seconds = 0) where T : class;
///
/// 读取缓存,单体
///
/// 键
///
T GetCache(string cacheKey) where T : class;
///
/// 获取所有key
///
///
List GetAllKeys();
///
/// 确定当前Key是否过期
///
///
///
bool HasExpire(string key);
///
/// 移除指定数据缓存
///
/// 键
void RemoveCache(string key);
///
/// 批量删除数据缓存
///
///
void RemoveCache(List keys);
}
}