Documentation ¶
Index ¶
- Constants
- type Config
- type Plugin
- func (s *Plugin) Close() error
- func (s *Plugin) Delete(keys ...string) error
- func (s *Plugin) Get(key string) ([]byte, error)
- func (s *Plugin) Has(keys ...string) (map[string]bool, error)
- func (s *Plugin) Init(cfg config.Configurer, log logger.Logger) error
- func (s *Plugin) MExpire(items ...kv.Item) error
- func (s *Plugin) MGet(keys ...string) (map[string]interface{}, error)
- func (s *Plugin) Name() string
- func (s *Plugin) RPC() interface{}
- func (s *Plugin) Serve() chan error
- func (s *Plugin) Set(items ...kv.Item) error
- func (s *Plugin) Stop() error
- func (s *Plugin) TTL(keys ...string) (map[string]interface{}, error)
Constants ¶
View Source
const PluginName = "memory"
PluginName is user friendly name for the plugin
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Enabled or disabled (true or false) Enabled bool // 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
Click to show internal directories.
Click to hide internal directories.