version 0.1.0-rc0005
This repo contains components aimed to simplify the adoption of Redis in dotnet
using a Functional Programming-first approach (thanks to Franco Melandri’s tiny-fp).
The library includes functionalities for:
IRedisKeyService
IRedisHashSetService
IRedisSetService
IRedisPublisherService
and IRedisSubscriber
To register the required components, use:
...
services
.AddRedis<TypeOfRedisSerDes>(RedisCapabilities.Keys | ...) // capabilities as flags
...
where capabilities
is a bitwise combination of RedisCapabilities:
RedisCapabilities.Keys
enables keys managementRedisCapabilities.HashSet
enables hash sets managementRedisCapabilities.Set
enables sets managementRedisCapabilities.Publisher
enables publish managementRedisCapabilities.Subscriber
enables subscribe management (the AddRedis
service collection extension requires an array of assemblies to enable scanning of IRedisSubscriber
implementations).See here for some details on the usage of the library.