basalt / cache-redis/src / escapeGlob
Function: escapeGlob()
> escapeGlob(value): string
Defined in: cache-redis/src/index.ts:22
Escapes Redis glob metacharacters so a key segment is matched literally. Scope segments carry user-controlled data (a tenant id / slug); left raw, a tenant named a* would make flushPrefix match — and DELETE — other tenants' keys.
Parameters
value
string
Returns
string