Module Hub Beta

PDEL

pattern

Deletes keys with names matching pattern.

pattern should be given as a POSIX Extended Regular Expression.

Return Value

Integer reply: the number of keys deleted.

Examples

redis> MSET one 1 two 2 three 3
OK
redis> PDEL ^.{3,3}$
(integer) 2
redis> KEYS *
1) “three”

© 2017 Redis Labs, Inc. All rights reserved.