bananaml / potassium

An HTTP serving framework by Banana
Apache License 2.0
97 stars 9 forks source link

added redis store #6

Closed erik-dunteman closed 1 year ago

erik-dunteman commented 1 year ago

What is this?

Adds redis backend to the potassium Store utility

Why?

So replicas may synchronize with a shared redis

How did you test to ensure no regressions?

Tested these cases (unit test added)

If this is a new feature what is one way you can make this break?

RedisConfig requires values for host and port, and we don't handle cases where users input invalid values there, so it'd be the redis client errors that bubble up rather than potassium errors.