In order to use StackExchange.Redis.Extensions you need to use two packages:
- The
corepackage; - The
serializerpackage;
The core package is the library that includes all the method you need into your code, like AddAsync, ExistsAsync and so on. It carries StackExchange.Redis and usually you can access it using the interface IRedisCacheClient or IRedisDatabase.
This package includes the the class that will be in charge to serialize the object you want to add into Redis.
In order to prevent conflict between StackExchange.Redis serializer and what you are using into your application, the are different options:
- Newtonsoft Json.Net
- MsgPack
- Protobuf-net
- UTF8Json
- MemoryPack
- Jil
- System.Text.Json