Redis / Get all keys & values from redis with prefix

HGETALL returns all fields and values of the hash stored at key, you can’t specify a mask: http://redis.io/commands/hgetall

You can call KEYS doc:* to get a list of all keys matching your criteria and then get all values in a loop.

But please read a section on potential performance hit before you do that: http://redis.io/commands/keys

Leave a Comment