123123
This commit is contained in:
@@ -3,17 +3,17 @@
|
||||
namespace ZelWiki.Caching
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains a verbatim cache key.
|
||||
/// 包含逐字缓存键
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
public class WikiCacheKey(string key) : IWikiCacheKey
|
||||
{
|
||||
public string Key { get; set; } = key;
|
||||
|
||||
public static WikiCacheKey Build(WikiCache.Category category, object?[] segments)
|
||||
public static WikiCacheKey Build(Category category, object?[] segments)
|
||||
=> new($"[{category}]:[{string.Join("]:[", segments)}]");
|
||||
|
||||
public static WikiCacheKey Build(WikiCache.Category category)
|
||||
public static WikiCacheKey Build(Category category)
|
||||
=> new($"[{category}]");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user