trait RedisPaginatedTrait (View source)

Methods

Generator|string[]
paginatedScan(Redis $redis, string $pattern)

Scan for a specific key pattern

Generator|array
paginatedScanValues(Redis $redis, string $pattern)

Get the keys and values matching a pattern

Details

protected Generator|string[] paginatedScan(Redis $redis, string $pattern)

Scan for a specific key pattern

Parameters

Redis $redis
string $pattern

The pattern to search for ex: foo, *, foo.*

Return Value

Generator|string[]

A list of keys that match the pattern

protected Generator|array paginatedScanValues(Redis $redis, string $pattern)

Get the keys and values matching a pattern

Parameters

Redis $redis
string $pattern

The pattern to search for ex: foo, *, foo.*

Return Value

Generator|array

A list of key => value results