mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 13:57:32 +00:00
17 lines
330 B
Go
17 lines
330 B
Go
|
package bigcache
|
||
|
|
||
|
import (
|
||
|
"github.com/caos/zitadel/internal/cache"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type Config struct {
|
||
|
MaxCacheSizeInMB int
|
||
|
//CacheLifetime if set, entries older than the lifetime will be deleted on cleanup (every minute)
|
||
|
CacheLifetime time.Duration
|
||
|
}
|
||
|
|
||
|
func (c *Config) NewCache() (cache.Cache, error) {
|
||
|
return NewBigcache(c)
|
||
|
}
|