Skip to content

Commit

Permalink
Merge pull request #14 from InCerryGit/ls_fix_miss_option
Browse files Browse the repository at this point in the history
fix miss option
  • Loading branch information
InCerryGit authored Oct 20, 2023
2 parents bfe696f + da0879a commit 97e561c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ FasterKv.Cache是一个基于微软FasterKv封装的进程内混合缓存库(内

| 软件包名 | 版本 | 备注 |
|-----------------------------------------------------------------------------------------------|-----------|-------------------------------------------------------------------------------------------|
| [FasterKv.Cache.Core](https://www.nuget.org/packages/FasterKv.Cache.Core) | 1.0.0-rc1 | 缓存核心包,包含FasterKvCache主要的API |
| [FasterKv.Cache.MessagePack](https://www.nuget.org/packages/FasterKv.Cache.MessagePack) | 1.0.0-rc1 | 基于MessagePack的磁盘序列化包,它具有着非常好的性能,但是需要注意它稍微有一点使用门槛,大家可以看它的文档。 |
| [FasterKv.Cache.SystemTextJson](https://www.nuget.org/packages/FasterKv.Cache.SystemTextJson) | 1.0.0-rc1 | 基于System.Text.Json的磁盘序列化包,它是.NET平台上性能最好JSON序列化封装,但是比MessagePack差。不过它易用性非常好,无需对缓存实体进行单独配置。 |
| [FasterKv.Cache.Core](https://www.nuget.org/packages/FasterKv.Cache.Core) | 1.0.2-rc2 | 缓存核心包,包含FasterKvCache主要的API |
| [FasterKv.Cache.MessagePack](https://www.nuget.org/packages/FasterKv.Cache.MessagePack) | 1.0.2-rc2 | 基于MessagePack的磁盘序列化包,它具有着非常好的性能,但是需要注意它稍微有一点使用门槛,大家可以看它的文档。 |
| [FasterKv.Cache.SystemTextJson](https://www.nuget.org/packages/FasterKv.Cache.SystemTextJson) | 1.0.2-rc2 | 基于System.Text.Json的磁盘序列化包,它是.NET平台上性能最好JSON序列化封装,但是比MessagePack差。不过它易用性非常好,无需对缓存实体进行单独配置。 |

## 使用

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public static IServiceCollection AddFasterKvCache(
x.ReadCacheMemorySizeBit = option.ReadCacheMemorySizeBit;
x.ReadCachePageSizeBit = option.ReadCachePageSizeBit;
x.CustomStore = option.CustomStore;
x.DeleteFileOnClose = option.DeleteFileOnClose;
x.TryRecoverLatest = option.TryRecoverLatest;
});
services.TryAddSingleton<ISystemClock, DefaultSystemClock>();
services.AddSingleton(provider =>
Expand Down

0 comments on commit 97e561c

Please sign in to comment.