2025-06-06 14:57:20 +08:00

24 lines
522 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace YD_WeChatApplet.Commons.MemoryCaches
{
/// <summary>
/// 缓存接口
/// </summary>
public interface ICaching
{
object Get(string cacheKey);
void Set(string cacheKey, object cacheValue, int seconds);
void Set(string cacheKey, object cacheValue);
void Update(string cacheKey, object cacheValue, int seconds);
void Remove(string cacheKey);
}
}