Documentation
¶
Index ¶
- type Config
- type Configurer
- type Driver
- func (d *Driver) Clear() error
- func (d *Driver) Delete(keys ...string) error
- func (d *Driver) Get(key string) ([]byte, error)
- func (d *Driver) Has(keys ...string) (map[string]bool, error)
- func (d *Driver) MExpire(items ...kv.Item) error
- func (d *Driver) MGet(keys ...string) (map[string][]byte, error)
- func (d *Driver) Set(items ...kv.Item) error
- func (d *Driver) Stop()
- func (d *Driver) TTL(keys ...string) (map[string]string, error)
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 Configurer ¶
Click to show internal directories.
Click to hide internal directories.