mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-01 16:01:26 +02:00
proxy: use querier cache for user info (#5532)
This commit is contained in:
parent
08623ef346
commit
bc263e3ee5
12 changed files with 259 additions and 156 deletions
|
@ -107,3 +107,6 @@ func (cache *globalCache) set(expiry time.Time, key, value []byte) {
|
|||
cache.fastcache.Set(key, item)
|
||||
cache.mu.Unlock()
|
||||
}
|
||||
|
||||
// GlobalCache is a global cache with a TTL of one minute.
|
||||
var GlobalCache = NewGlobalCache(time.Minute)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue