Make redis cache timeout not trivial.
- Instead of using HASH for all the caches, use HASH + normal KEYs. - HASH being used as a collection of all KEYs, this is useful when application wants to clear all keys.
Showing
3 changed files
with
118 additions
and
14 deletions
cache/redis/redis_test.go
0 → 100644
-
Please register or sign in to post a comment