You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
722 B
Plaintext

11 months ago

namespace BP.GPM.DTalk.DDSDK
{
/// <summary>
/// 缓存接口
/// </summary>
interface ICacheProvider
{
/// <summary>
/// 获取缓存
/// </summary>
/// <param name="key">缓存key</param>
/// <returns>缓存对象或null,不存在或者过期返回null</returns>
object GetCache(string key);
/// <summary>
/// 写入缓存
/// </summary>
/// <param name="key">缓存key</param>
/// <param name="value">缓存值</param>
/// <param name="expire">缓存有效期单位为秒默认300</param>
void SetCache(string key, object value, int expire = 300);
}
}