rename arg

This commit is contained in:
Namekuji 2023-07-02 23:14:28 -04:00
parent af4797bb8e
commit 722ccf04f9
No known key found for this signature in database
GPG Key ID: 1D62332C07FBA532

View File

@ -6,9 +6,9 @@ export class Cache<T> {
private ttl: number; private ttl: number;
private prefix: string; private prefix: string;
constructor(prefix: string, ttlSeconds: number) { constructor(name: string, ttlSeconds: number) {
this.ttl = ttlSeconds; this.ttl = ttlSeconds;
this.prefix = `cache:${prefix}`; this.prefix = `cache:${name}`;
} }
private prefixedKey(key: string | null): string { private prefixedKey(key: string | null): string {