Class: RedisCopy::KeyEmitter::Scan

Inherits:
Object
  • Object
show all
Defined in:
lib/redis-copy/key-emitter/scan.rb

Overview

Scan uses the SCAN family of commands, which were introduced in the 2.8 branch of Redis, and after 3.0.5 of the redis-rb gem.

Instance Method Summary collapse

Instance Method Details

#keysObject



16
17
18
# File 'lib/redis-copy/key-emitter/scan.rb', line 16

def keys
  @redis.scan_each(count: 1000, match: pattern)
end