debasishg / scala-redis

A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.
1.02k stars 219 forks source link

Getting all the keys #168

Closed danyaljj closed 8 years ago

danyaljj commented 8 years ago

Is there a way to get all the keys stored in redis?

danyaljj commented 8 years ago

Found it: https://github.com/debasishg/scala-redis/blob/master/src/main/scala/com/redis/Operations.scala#L49 Would be nice to add samples to the documentation.

colinbes commented 7 years ago

I thought using "keys" was discouraged in production releases and "scan" was recommended instead?