Sha256: c7a5dfc46f6704d7d94c43a06441c2ec98492ea3dd3fe6f865172ac90f103620
Contents?: true
Size: 935 Bytes
Versions: 1
Compression:
Stored size: 935 Bytes
Contents
Rediscan ======== Scanner for Redis keyspace Description ----------- Rediscan lets you iterate over the Redis keyspace and execute a block for each match. Usage ----- You need to suply a Redis client. There are no restrictions regarding the type of the Redis client, but it must respond to `call` and the signature must be identical to that of [Redic][redic]. ```ruby r = Rediscan.new(Redic.new) ``` Once you have the `Rediscan` instance, you can use it as follows: ```ruby r.each do |key| # Do something with `key` end ``` You can also provide `match` and `count` arguments: ```ruby r.each(match: "ost:*", count: 4) do |key| # Do something with `key` end ``` For the meaning for `match` and `count`, check the documentation for the [SCAN command][scan] ## Installation You can install it using rubygems. ``` $ gem install rediscan ``` [redic]: https://github.com/amakawa/redic [scan]: http://redis.io/commands/scan
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rediscan-0.0.1 | README.md |