MemcachedTiny.DistributedCache
1.1.1
dotnet add package MemcachedTiny.DistributedCache --version 1.1.1
NuGet\Install-Package MemcachedTiny.DistributedCache -Version 1.1.1
<PackageReference Include="MemcachedTiny.DistributedCache" Version="1.1.1" />
paket add MemcachedTiny.DistributedCache --version 1.1.1
#r "nuget: MemcachedTiny.DistributedCache, 1.1.1"
// Install MemcachedTiny.DistributedCache as a Cake Addin #addin nuget:?package=MemcachedTiny.DistributedCache&version=1.1.1 // Install MemcachedTiny.DistributedCache as a Cake Tool #tool nuget:?package=MemcachedTiny.DistributedCache&version=1.1.1
MemcachedTiny.DistributedCache
基于 MemcachedTiny
的 IDistributedCache
接口实现。
Implementation of IDistributedCache
Interface Based on MemcachedTiny
Copyright (C) 2023 lchfj.cn
MemcachedTiny.DistributedCache
is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
MemcachedTiny.DistributedCache
is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with MemcachedTiny.DistributedCache
. If not, see https://www.gnu.org/licenses/.
配置项
appsettings.json (可不配置,与下方配置等效)
更多配置项参见:MemcachedTiny.DistributedCache.MemcachedOption
{
"MemcacheTiny": {
"Connect": [ "127.0.0.1:11211" ]
}
}
Program.cs
public class Program
{
public static void Main(string[] args)
{
var builder = Host.CreateDefaultBuilder(args);
builder.Services.AddMemcacheTiny();
var app = builder.Build();
app.Run();
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- MemcachedTiny (>= 1.0.0 && < 2.0.0)
- Microsoft.Extensions.Caching.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
数据压缩修改:
1、增加条件压缩的配置支持
2、是否启用压缩的配置项由 DisabledCompress 改为 CompressDisabled。
3、解决未启用压缩时出现错误