public IEnumerable<RedisKey> Keys(int database = 0, RedisValue pattern = default(RedisValue), int pageSize = CursorUtils.DefaultPageSize, long cursor = CursorUtils.Origin, int pageOffset = 0, CommandFlags flags = CommandFlags.None)| Parameter | Details |
|---|---|
| database | Redis database index to connect to |
| pattern | Unsure |
| pageSize | Number of items to return per page |
| cursor | Unsure |
| pageOffset | Number of pages to offset the results by |
| flags | Unsure |
The Keys() call will select either the KEYS or SCAN command based on the version of the Redis server. Where possible it will prefer the usage of SCAN which returns an IEnumerable<RedisKey> and does not block. KEYS on the other hand will block when scanning the key space.