Skip to content

dotnet-school/dotnet-redis

Repository files navigation

Todo:

  • Change all db to connection.GetDb()

  • Topics

    • Strings
    • Object as json strings
    • HashMap
    • List
    • listening to list
    • Set
    • pub/sub
    • Understand RedisValue
    • lua script
    • transactional updates
    • Connections and configurations
      • Explain multiplexer vs getDatabase(), cheap pass thorugh and reusable
  • Cookbook

    • Consensus building
    • Work distribution
  • Best practices

    • Wrap IDatabase (for testing/mocking)
    • Create only one multiplexer
  • Advanced

    • SSL with redis
    • mastter slave
    • kyspace notifications
  • Create a client

  • Use SETENX

  • Save a POCO by its id in redis

  • Retrieve a POCO by its id in redis

  • Implement connection recovery

Redis with C#

Contents

Misc

  • redis treats a non-existent key as zero;
  • nil responses are treated as zero
  • Keys can be string or byte (redis never tries to interpret them as any type)
  • Use KeyValue.HasValue to check if there is any value for the key

Pre-requisite

References:

About

Using redis in C# with StackExchange.Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages