* add dynamic options for cache * fixed bugs based on unit-test * add doc for cache * make cache implements be private * Change simpleCache name to InMemoryCache Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com> * Remove fake cache and replacing to in memory cache with default parameter Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com> Signed-off-by: Wenhao Zhou <wenhaozhou@yunify.com>
9 lines
206 B
Go
9 lines
206 B
Go
package cache
|
|
|
|
type CacheFactory interface {
|
|
// Type unique type of the cache
|
|
Type() string
|
|
// Create relevant caches by type
|
|
Create(options DynamicOptions, stopCh <-chan struct{}) (Interface, error)
|
|
}
|