Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
Db is a wrapper around badger.DB
func (*Db) Close ¶
Close implements the DB interface. It closes the connection to the underlying BadgerDB database as well as invoking the context's cancel function.
func (*Db) Delete ¶
Delete implements the DB interface. It attempts to delete a value for a given key and namespace. If the key/value pair cannot be deleted, an error is returned.
func (*Db) Get ¶
Get implements the DB interface. It attempts to get a value for a given key and namespace. If the key does not exist in the provided namespace, an error is returned, otherwise the retrieved value.
Click to show internal directories.
Click to hide internal directories.