diff --git a/src/index.ts b/src/index.ts index 6784eb8..b1fa760 100644 --- a/src/index.ts +++ b/src/index.ts @@ -149,7 +149,7 @@ CREATE INDEX IF NOT EXISTS idx_expired_caches ON ${tableName}(expiredAt); keys(pattern?: string): Promise { return new Promise((resolve, reject) => { try { - const result = (finderStatement.all(pattern?.replace("*", "%") ?? "%", now()) as CacheObject[]).map( + const result = (finderStatement.all(pattern?.replaceAll("*", "%") ?? "%", now()) as CacheObject[]).map( (cache) => cache.cacheKey, ); resolve(result);