🖋️
StackExchange Redis Extensions
  • Home
  • Setup
  • Dependency Injection
  • Configuration
    • C# Configuration
    • Json Configuration
    • XML Configuration
  • Serializers
    • Newtonsoft Json.Net
    • MsgPack
    • System.Text.Json
  • Packages
  • Usage
    • Add, retrieve and remove complex object
    • Replace an object
    • Work with multiple items
    • Custom serializer
  • ASP.NET Core
    • Expose redis information
  • Helpful link
  • License
  • Work with the code
    • Unit tests
  • Usages
Powered by GitBook
On this page
  • The Core Package
  • The Serializer package

Was this helpful?

Setup

In order to use StackExchange.Redis.Extensions you need to use two packages:

  • The core package;

  • The serialier package;

The Core Package

The core package is the library includes all the method you need into your code, like AddAsync, ExistsAsync and so on. It carries StackExchange.Redis and usually you can access to it usi the interface IRedisCacheClient or IRedisDatabase.

The Serializer package

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

  • Binary

  • System.Text.Json

PreviousHomeNextDependency Injection

Last updated 5 years ago

Was this helpful?