feat:完善缓存相关

This commit is contained in:
陈淳
2023-04-19 13:39:55 +08:00
parent cb75196455
commit 654c7d650a
10 changed files with 214 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Furion.DependencyInjection;
using Microsoft.Extensions.Caching.Memory;
namespace Yi.Framework.Module.Caching
{
public class MemoryCacheClient : CacheManager,ISingleton
{
private IMemoryCache Client { get; set; }
public MemoryCacheClient()
{
Client = new Microsoft.Extensions.Caching.Memory.MemoryCache(new MemoryCacheOptions());
}
}
}