-
Notifications
You must be signed in to change notification settings - Fork 31
pkg/idempotent: create redis implementation #21
Comments
@adamdecaf
But I had not considered how can we get started redis server(though, Is getting to start server scope?), proper error handling of dial and send to it(now I use panic when catch the error, I suppose to be handling as log to returns error from SeenBefore func), and a mechanism to be switching LRU which you implement and Redis yet. Don't you have any ideas following these issues? |
Thanks @u5surf! There's https://github.com/rafaeljusto/redigomock which looks like it works with the redis library chosen too. @wadearnold That project is GPL v2, can we use that? Probably not? We defiantly don't want to panic. Returning the error with whatever context we can is helpful. Reading the diff I noticed there's no |
I fixed to use context to be handling redis errors. and add defaultTimeout in redis. |
Cool! I don't think we need a context though. Can you open a PR? |
Closing, see moov-io/base#16 |
From the
X-Idempotency-Key
issue (#15 (comment)) we want to implement a redis implementation ofidempotent.Recorder
.Can we run an inmem redis for tests? I don't know off hand what's available.
The text was updated successfully, but these errors were encountered: