- redis_scan(+Redis, -LazyList, +Options) is det
- redis_sscan(+Redis, +Set, -LazyList, +Options) is det
- redis_hscan(+Redis, +Hash, -LazyList, +Options) is det
- redis_zscan(+Redis, +Set, -LazyList, +Options) is det
- Map the Redis
SCAN
, SSCAN
, HSCAN
and ZSCAN` commands
into a lazy list. For redis_scan/3 and redis_sscan/4 the result is
a list of strings. For redis_hscan/4 and redis_zscan/4, the result
is a list of pairs. Options processed:
- match(Pattern)
- Adds the
MATCH
subcommand, only returning matches for
Pattern.
- count(Count)
- Adds the
COUNT
subcommand, giving a hint to the size of the
chunks fetched.
- type(Type)
- Adds the
TYPE
subcommand, only returning answers of the
indicated type.
- See also
- - lazy_list/2.