-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add v2 with generics #43
Conversation
a12379d
to
0da3b2b
Compare
0b1bf28
to
b74880a
Compare
b74880a
to
4375d49
Compare
Looking good. I'm not a big fan of using reflection for Redis, but it's likely the right approach in this situation. Please ping me once you're done with everything, and I'll take a closer look. |
4375d49
to
6d33e2b
Compare
@umputun, everything is ready for review. It took some time for me to figure out how to combine two coverage profiles into one for a proper coverage report. |
ad654ac
to
59ee585
Compare
The code in github.com/hashicorp/golang-lru/v2/expirable was provided by me and was inspired by the code here.
59ee585
to
4847b39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of things:
- lint/style: imports are not sorted properly, one of file has import twice
- attempt to
go get -u ./...
brings redis's lib update, and it seems to be incompatible with our code
The Redis problem seems to be redis/go-redis#2914. It should be fixed upstream, as it affects a lot of cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Redis cache creation will return an error if used with a type which is not a string or not based on a string.
Resolves #31 and #39.