Skip to content

Conversation

@Memoyu
Copy link
Contributor

@Memoyu Memoyu commented Feb 2, 2023

Content

Then use diskcache to allow custom serializers. Currently, the following serializers are supported:

  1. NewtonsoftJson
  2. SystemTextJson
  3. Message Pack

Usage:

option.UseDisk(cfg =>
{
    cfg.DBConfig = new DiskDbOptions { BasePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Cache") };
    cfg.SerializerName = "msgpack";
}, "disk")
.WithJson("json")
.WithSystemTextJson("sysjson")
.WithMessagePack("msgpack");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants