Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCache ¶
func RegisterCache(name string, f CacheConstructor)
Types ¶
type Cache ¶
type Cache interface { Put(namespace, key string, data []byte) error Get(namespace, key string) ([]byte, error) }
func NewCocaineCache ¶
func NewCocaineCache(config *configs.PluginConfig) (Cache, error)
func NewInMemoryCache ¶
func NewInMemoryCache(config *configs.PluginConfig) (Cache, error)
type CacheConstructor ¶
type CacheConstructor func(*configs.PluginConfig) (Cache, error)
type CocaineCache ¶
type CocaineCache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.