mirror of
https://github.com/bytedance/g3.git
synced 2026-04-28 19:51:23 +00:00
g3proxy: introduce a cache layer for remote user passwords
This commit is contained in:
parent
7dcf3974a8
commit
4a97072987
6 changed files with 150 additions and 2 deletions
|
|
@ -126,3 +126,21 @@ queue_wait_timeout
|
|||
Set the timeout value when auth with the LDAP server for a client request.
|
||||
|
||||
**default**: 4s
|
||||
|
||||
cache_user_count
|
||||
----------------
|
||||
|
||||
**optional**, **type**: usize
|
||||
|
||||
Set how many users will be LRU cached in thread local storage.
|
||||
|
||||
**default**: 128
|
||||
|
||||
cache_expire_time
|
||||
-----------------
|
||||
|
||||
**optional**, **type**: :ref:`humanize duration <conf_value_humanize_duration>`
|
||||
|
||||
Set the expire time for valid passwords in the thread local LRU cache.
|
||||
|
||||
**default**: 5min
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue