Documentation
¶
Index ¶
- Constants
- type Config
- type Configurer
- type Driver
- func (d *Driver) Clear(ctx context.Context) error
- func (d *Driver) Delete(ctx context.Context, keys ...string) error
- func (d *Driver) Get(ctx context.Context, key string) ([]byte, error)
- func (d *Driver) Has(ctx context.Context, keys ...string) (map[string]bool, error)
- func (d *Driver) MExpire(ctx context.Context, items ...kv.Item) error
- func (d *Driver) MGet(ctx context.Context, keys ...string) (map[string][]byte, error)
- func (d *Driver) Set(ctx context.Context, items ...kv.Item) error
- func (d *Driver) Stop(_ context.Context)
- func (d *Driver) TTL(ctx context.Context, keys ...string) (map[string]string, error)
Constants ¶
View Source
const (
RootPluginName string = "kv"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// File is boltDB file. No need to create it by your own,
// boltdb driver is able to create the file, or read existing
File string `mapstructure:"file"`
// db file permissions
Permissions int `mapstructure:"permissions"`
// timeout
Interval int `mapstructure:"interval"`
// contains filtered or unexported fields
}
func (*Config) InitDefaults ¶
func (s *Config) InitDefaults()
InitDefaults initializes default values for the boltdb
type Configurer ¶
Click to show internal directories.
Click to hide internal directories.