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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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);
}
}