Falcon.Cache/Falcon.Cache/IGenerateKey.cs

16 lines
432 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Falcon.Cache
{
/// <summary>
/// 实现创建对象Key的方法
/// </summary>
/// <remarks>获取对象Key的时候调用该方法获取用于缓存的Key</remarks>
public interface IGenerateKey
{
/// <summary>
/// 获取对象的Key这个Key唯一标示该对象
/// </summary>
/// <returns>标示对象的Key</returns>
string GetCacheKey();
}
}