fix: type error

This commit is contained in:
Innei
2023-06-20 21:23:12 +08:00
parent 8fd18e2eb2
commit 45eba0e327

View File

@@ -42,12 +42,12 @@ export class CacheService {
return this.cache.get(key)
}
public set<T>(
public set(
key: TCacheKey,
value: any,
options?: { ttl: number },
): TCacheResult<T> {
return this.cache.set(key, value, options)
): Promise<void> {
return this.cache.set(key, value, options?.ttl)
}
public getClient() {