-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
To my knowledge, the HSET/HGET will have better performance when there are many keys share the prefix, just like this:
cache:user:session:1
cache:user:session:2
My suggestion is to store the everything after the last / symbol as the HSET/HGET key. For example, we should turn:
GET cache:user:session/1
to:
HGET cache:user:session 1
automatically.
If you like this idea, I will push you a PR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels