Skip to content

Commit e10379d

Browse files
committed
fix: setLogicalTtl not working
1 parent 09cd234 commit e10379d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/bentocache/src/cache/cache_entry/cache_entry_options.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,18 @@ export function createCacheEntryOptions(
5959
* Logical TTL is when the value is considered expired
6060
* but still can be in the cache ( Grace period )
6161
*/
62-
logicalTtl,
62+
get logicalTtl() {
63+
return logicalTtl
64+
},
6365

6466
/**
6567
* Physical TTL is the time when value will be automatically
6668
* removed from the cache. This is the Grace period
6769
* duration
6870
*/
69-
physicalTtl,
71+
get physicalTtl() {
72+
return physicalTtl
73+
},
7074

7175
/**
7276
* Timeouts for the cache operations

0 commit comments

Comments
 (0)