Skip to content

Commit e30a746

Browse files
authored
test: use longer ttl, avoid the cached item expired. (#1760)
1 parent eafaf15 commit e30a746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/core/lrucache.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ obj: {"idx":2,"_cache_ver":"ver"}
258258
end
259259

260260
local lru_get = core.lrucache.new({
261-
ttl = 0.1, count = 256, invalid_stale = true,
261+
ttl = 1, count = 256, invalid_stale = true,
262262
})
263263

264264
local function f()

0 commit comments

Comments
 (0)