mirror of
https://example.com
synced 2024-11-23 22:46:40 +09:00
rename arg
This commit is contained in:
parent
af4797bb8e
commit
722ccf04f9
1 changed files with 2 additions and 2 deletions
|
@ -6,9 +6,9 @@ export class Cache<T> {
|
|||
private ttl: number;
|
||||
private prefix: string;
|
||||
|
||||
constructor(prefix: string, ttlSeconds: number) {
|
||||
constructor(name: string, ttlSeconds: number) {
|
||||
this.ttl = ttlSeconds;
|
||||
this.prefix = `cache:${prefix}`;
|
||||
this.prefix = `cache:${name}`;
|
||||
}
|
||||
|
||||
private prefixedKey(key: string | null): string {
|
||||
|
|
Loading…
Reference in a new issue