Home > @imqueue/rpc > RedisCache > purge

RedisCache.purge() method

Purges all keys from the cache matching a given wildcard mask.

Signature:

purge(keyMask: string): Promise<boolean>;

Parameters

Parameter

Type

Description

keyMask

string

wildcard mask to match keys against {Promise}

Returns:

Promise<boolean>