Skip to content
This page View Markdown Open in ChatGPT Open in Claude

Remove key

g.sys.cache.removeKey calls the remove redis key system API from your code.

Remove redis keys

Remove redis key and its value using global object 'g'.

await g.sys.cache.removeKey("REDIS_KEY_NAME");

Remove multiple redis keys.

await g.sys.cache.removeKey(["REDIS_KEY_NAME", "ANOTHER_REDIS_KEY_NAME"]);