Method: Redis::Commands::Keys#exists?
- Defined in:
- lib/redis/commands/keys.rb
#exists?(*keys) ⇒ Boolean
Determine if any of the keys exists.
279 280 281 282 283 |
# File 'lib/redis/commands/keys.rb', line 279 def exists?(*keys) send_command([:exists, *keys]) do |value| value > 0 end end |