{"modulePath":"github.com/devfile/devworkspace-operator","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cache\n\n## Functions\n\n```go\nfunc GetCacheFunc() (cache.NewCacheFunc, error)\n```\nGetCacheFunc returns a new cache function that restricts the cluster items we store in the manager's internal cache. This is required because the controller watches a lot of resource types, which can result in very high memory usage on large clusters (e.g. clusters with tens of thousands of secrets).\n\n```go\nfunc GetWebhooksCacheFunc(namespace string) (cache.NewCacheFunc, error)\n```\nGetWebhooksCacheFunc returns a new cache function that restricts the cluster items we store in the webhook server's internal cache. This avoids issues where the webhook server's memory usage scales with the number of objects on the cluster, potentially causing out of memory errors in large clusters.\n\n","path":"github.com/devfile/devworkspace-operator/pkg/cache","name":"cache","synopsis":"","isRedistributable":true}
