This commit is contained in:
tamaina 2024-08-18 19:22:00 +09:00
parent d01cd153d1
commit e4b4e9149f
2 changed files with 6 additions and 6 deletions

View file

@ -168,11 +168,6 @@ export class RedisSingleCache<T> {
return value;
}
@bindThis
public getRaw(): T | undefined {
return this.memoryCache.get();
}
@bindThis
public async delete(): Promise<void> {
this.memoryCache.delete();
@ -242,6 +237,11 @@ export class MemoryKVCache<T> {
return cached.value;
}
@bindThis
public getRaw(key: string): { date: number; value: T; } | undefined {
return this.cache.get(key);
}
@bindThis
public delete(key: string): void {
this.cache.delete(key);