Skip to content

Commit e63eea4

Browse files
mocoliciousCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 97d5b95 commit e63eea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/api/core/data-access/src/lib/cache/api-core-cache.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ export class ApiCoreCacheService {
6666
* Set a value in the cache based on the namespace and key.
6767
*/
6868
private set<T>(namespace: CacheNamespace, key: string, value: T, ttl?: number) {
69-
return this.cache.set<T>(getCacheKey(namespace, key), value, ttl ?? 5)
69+
return this.cache.set<T>(getCacheKey(namespace, key), value, { ttl: ttl ?? 5 })
7070
}
7171
}

0 commit comments

Comments
 (0)