Files
kubesphere/pkg/simple/client/cache/factory.go
2025-04-30 15:53:51 +08:00

17 lines
456 B
Go

/*
* Copyright 2024 the KubeSphere Authors.
* Please refer to the LICENSE file in the root directory of the project.
* https://github.com/kubesphere/kubesphere/blob/master/LICENSE
*/
package cache
import "kubesphere.io/kubesphere/pkg/server/options"
type CacheFactory interface {
// Type unique type of the cache
Type() string
// Create relevant caches by type
Create(options options.DynamicOptions, stopCh <-chan struct{}) (Interface, error)
}