[Redis] Command to get all values of keys containing a specific string

Tadashi Shigeoka ·  Tue, October 7, 2014

A memo of the command to get all values of keys containing a specific string in Redis:

redis-cli KEYS "prefix*" | xargs redis-cli MGET

Reference Information

How does it feel?: redisで特定の条件にマッチするkeyを削除する

That’s all from the Gemba.