Documentation ¶
Index ¶
- Constants
- func NewInMemoryDriver(log logger.Logger, key string, cfgPlugin config.Configurer, stop chan struct{}) (kv.Storage, error)
- type Config
- type Driver
- func (s *Driver) Delete(keys ...string) error
- func (s *Driver) Get(key string) ([]byte, error)
- func (s *Driver) Has(keys ...string) (map[string]bool, error)
- func (s *Driver) MExpire(items ...kv.Item) error
- func (s *Driver) MGet(keys ...string) (map[string]interface{}, error)
- func (s *Driver) Set(items ...kv.Item) error
- func (s *Driver) TTL(keys ...string) (map[string]interface{}, error)
- type Plugin
Constants ¶
View Source
const PluginName = "memory"
PluginName is user friendly name for the plugin
Variables ¶
This section is empty.
Functions ¶
func NewInMemoryDriver ¶
Types ¶
type Config ¶
type Config struct { // Interval for the check Interval int }
Config is default config for the in-memory driver
func (*Config) InitDefaults ¶
func (c *Config) InitDefaults()
InitDefaults by default driver is turned off
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.