fix(caching): properly respect ttl for all cache levels
This commit is contained in:
@@ -64,7 +64,18 @@ export class CacheS3Manager extends AbstractCache {
|
||||
return false;
|
||||
}
|
||||
|
||||
public async clean() {
|
||||
public async deleteCacheEntryByKey(keyArg: string) {
|
||||
if(this.status === 'active') {
|
||||
await this.s3CacheDir.fastRemove(encodeURIComponent(keyArg));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* clean outdated
|
||||
*/
|
||||
public async cleanOutdated() {}
|
||||
|
||||
public async cleanAll() {
|
||||
await this.s3CacheDir.deleteWithAllContents();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user