Module Hub Beta

PKEYS

pattern

Returns keys with names matching pattern.

pattern should be given as a POSIX Extended Regular Expression.

Return Value

Array reply: list of keys matching pattern.

Examples

redis> MSET one 1 two 2 three 3
OK
redis> PKEYS ^t.*
1) “two”
2) “three”
redis> PKEYS o
1) “one”
2) “two”

© 2017 Redis Labs, Inc. All rights reserved.