mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 07:06:07 +09:00
rename arg
This commit is contained in:
parent
b36cc31e9b
commit
6f5e07de5d
@ -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 New Issue
Block a user