Stats

272 Contributors: 1
2015-12-10
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Scan

Download stackexchange.redis eBook

Syntax

  • 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)

Parameters

ParameterDetails
databaseRedis database index to connect to
patternUnsure
pageSizeNumber of items to return per page
cursorUnsure
pageOffsetNumber of pages to offset the results by
flagsUnsure

Remarks

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.

Related Examples