Retrieve a list of all keys stored in Redis (Ruby)

redis, ruby

Solution

Sure, the redis-rb exposes all of the Redis commands and represents them as methods on your client object.

redis.keys('*')

Problem

Is there a function in the redis-rb gem that returns a list of all the keys stored in the DB? My end goal is to iterate over all my key/value pairs and do perform some action on them.

Original source

Related problems