@authhero/adapter-interfaces 0.125.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37620,6 +37620,12 @@ export interface CacheAdapter {
|
|
|
37620
37620
|
* @returns True if the key existed and was deleted, false otherwise
|
|
37621
37621
|
*/
|
|
37622
37622
|
delete(key: string): Promise<boolean>;
|
|
37623
|
+
/**
|
|
37624
|
+
* Delete all values from the cache that match a key prefix
|
|
37625
|
+
* @param prefix The key prefix to match
|
|
37626
|
+
* @returns The number of keys deleted
|
|
37627
|
+
*/
|
|
37628
|
+
deleteByPrefix(prefix: string): Promise<number>;
|
|
37623
37629
|
/**
|
|
37624
37630
|
* Clear all items from the cache
|
|
37625
37631
|
*/
|