Duva - Distributed Cache Server
KEYS
Retrieve keys matching a specific pattern.
Syntax
KEYS pattern
Returns a list of keys that match the given pattern. Supports simple glob-style patterns.
Example
KEYS my*
Returns all keys starting with my
, such as mykey
, mykey2
.
Notes
- Use
*
to match any characters,?
for a single character. - Be cautious with large datasets, as this can be resource-intensive.