Method: Redis#keys
- Defined in:
- lib/redis.rb
#keys(pattern = "*") ⇒ Array<String>
Find all keys matching the given pattern.
434 435 436 437 438 439 440 441 442 443 444 |
# File 'lib/redis.rb', line 434 def keys(pattern = "*") synchronize do |client| client.call([:keys, pattern]) do |reply| if reply.kind_of?(String) reply.split(" ") else reply end end end end |