Skip to content

Commit 8338d52

Browse files
committed
chore(cache) set shm_set_retries option to 3
This is the default value offered by mlcache, but set here for the sake of explicitness.
1 parent f1a830f commit 8338d52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kong/cache.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function _M.new(opts)
7171

7272
local mlcache, err = resty_mlcache.new(SHM_CACHE, SHM_CACHE, {
7373
shm_miss = "kong_db_cache_miss",
74+
shm_set_retries = 3,
7475
lru_size = LRU_SIZE,
7576
ttl = max(opts.ttl or 3600, 0),
7677
neg_ttl = max(opts.neg_ttl or 300, 0),

0 commit comments

Comments
 (0)