4 ms·
doh! I got it backwards. You are right that hashes are more efficient: http://redis.io/topics/memory-optimization http://redis.io/topics/memory-optimization Ho
by dickeytk 15y ago
doh! I got it backwards. You are right that hashes are more efficient: http://redis.io/topics/memory-optimization http://redis.io/topics/memory-optimization
However, for this particular problem, the docs do say:
Don't use KEYS in your regular application code. If you're looking for a way to find keys in a subset of your keyspace, consider using sets.
I wonder why they don't suggest hashes?
- tabbyjabby 15y agoBecause you might want to use sets to group any type of keys, including hashes.