mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Cache with -1 for unlimited, ResourceS with short and long caching
This commit is contained in:
2
cache/cache_store.go
vendored
2
cache/cache_store.go
vendored
@@ -39,7 +39,7 @@ type cacheLRUTTL map[string]*ltcache.Cache
|
||||
|
||||
func newLRUTTL(cfg config.CacheConfig) (c cacheLRUTTL) {
|
||||
c = map[string]*ltcache.Cache{
|
||||
utils.ANY: ltcache.New(0, 0, false, nil), // no limits for default cache instance
|
||||
utils.ANY: ltcache.New(ltcache.UnlimitedCaching, ltcache.UnlimitedCaching, false, nil), // no limits for default cache instance
|
||||
}
|
||||
if cfg == nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user