redis-delete-pattern

JSON →
library 0.1.0 ·javascript maintenance
verified Jun 7, 2026

A utility to delete Redis keys matching a given pattern using the KEYS and DEL commands. Built by Uber in 2014 (v0.1.0) for batch cache invalidation. Minimal API: given a redis client instance and a glob-style pattern, it issues KEYS to find matching keys, then DEL to remove them. No updates since initial release; considered stable but unmaintained. Simpler than Lua scripting for ad-hoc purges, but inherits KEYS performance caveats on large datasets.