Cache with -1 for unlimited, ResourceS with short and long caching

This commit is contained in:
DanB
2017-09-03 20:12:59 +02:00
parent 7888fe8757
commit ca059c4faa
11 changed files with 159 additions and 122 deletions

View File

@@ -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