Documentation
¶
Index ¶
- func Start(opts Options) error
- type AOF
- type Options
- type Store
- func NewBTreeStore(path string, fsync bool) (Store, error)
- func NewBadgerStore(path string, fsync bool) (Store, error)
- func NewBboltStore(path string, fsync bool) (Store, error)
- func NewBoltStore(path string, fsync bool) (Store, error)
- func NewBuntdbStore(path string, fsync bool) (Store, error)
- func NewKVStore(path string, fsync bool) (Store, error)
- func NewLevelDBStore(path string, fsync bool) (Store, error)
- func NewMapStore(path string, fsync bool) (Store, error)
- func NewNutsdbStore(path string, fsync bool) (Store, error)
- func NewPebbleStore(path string, fsync bool) (Store, error)
- func NewPogrebStore(path string, fsync bool) (Store, error)
- func NewRocksdbStore(path string, fsync bool) (Store, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AOF ¶
type AOF struct {
// contains filtered or unexported fields
}
func (*AOF) AppendBuffer ¶
func (*AOF) BeginBuffer ¶
func (aof *AOF) BeginBuffer()
func (*AOF) WriteBuffer ¶
type Store ¶
type Store interface {
Close() error
Set(key, value []byte) error
PSet(keys, values [][]byte) error
Get(key []byte) ([]byte, bool, error)
PGet(keys [][]byte) ([][]byte, []bool, error)
Del(key []byte) (bool, error)
Keys(pattern []byte, limit int, withvalues bool) ([][]byte, [][]byte, error)
FlushDB() error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.