datumforge / datum

Datum's central server
https://datum.net
Apache License 2.0
53 stars 7 forks source link

Add Redis client libraries / interface for KV storage #287

Closed matoszz closed 5 months ago

matoszz commented 6 months ago

We have several needs for a key value store, especially one which can manage ongoing state for the application - Redis is the maintainers current preference.

At the time of writing, the echo server's ratelimiterstore could leverage the KV implementation, and passkeys are targeted as well; ideally migrate anything already implemented over to this new setup

golanglemonade commented 5 months ago

Redis client was added and should be able to be leveraged by the rate limiter middleware now: https://github.com/datumforge/datum/blob/main/internal/cache/client.go