初始化
This commit is contained in:
13
WebAPIServer/Common/MyMemoryCache.cs
Normal file
13
WebAPIServer/Common/MyMemoryCache.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
|
||||
namespace WebAPIServer.Common
|
||||
{
|
||||
public class MyMemoryCache
|
||||
{
|
||||
public MemoryCache Cache { get; } = new MemoryCache(
|
||||
new MemoryCacheOptions
|
||||
{
|
||||
SizeLimit = 4096
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user