diff options
Diffstat (limited to 'resources/resource_cache.go')
-rw-r--r-- | resources/resource_cache.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/resource_cache.go b/resources/resource_cache.go index bf930c71d..a3ba9aa26 100644 --- a/resources/resource_cache.go +++ b/resources/resource_cache.go @@ -36,6 +36,11 @@ func newResourceCache(rs *Spec, memCache *dynacache.Cache) *ResourceCache { "/res1", dynacache.OptionsPartition{ClearWhen: dynacache.ClearOnChange, Weight: 40}, ), + CacheResourceRemote: dynacache.GetOrCreatePartition[string, resource.Resource]( + memCache, + "/resr", + dynacache.OptionsPartition{ClearWhen: dynacache.ClearOnChange, Weight: 40}, + ), cacheResources: dynacache.GetOrCreatePartition[string, resource.Resources]( memCache, "/ress", @@ -53,6 +58,7 @@ type ResourceCache struct { sync.RWMutex cacheResource *dynacache.Partition[string, resource.Resource] + CacheResourceRemote *dynacache.Partition[string, resource.Resource] cacheResources *dynacache.Partition[string, resource.Resources] cacheResourceTransformation *dynacache.Partition[string, *resourceAdapterInner] |