Skip to main content

escape_glob

Function escape_glob 

Source
pub(crate) fn escape_glob(s: &str) -> String
Expand description

Backslash-escapes every glob metacharacter Redis’s MATCH understands.

An id is free-form config text. Without this, a pair named a* would purge every pair beginning with a.