Documentation ¶
Index ¶
- type Database
- func (db *Database) DeleteByKey(key string) error
- func (db *Database) DeleteByPrefix(prefix string) error
- func (db *Database) Get(key string) ([]byte, bool, error)
- func (db *Database) GetByPrefix(ctx context.Context, prefix string) (map[string][]byte, error)
- func (db *Database) Set(key string, data []byte, ttl uint) error
- func (db *Database) SetBatch(data map[string][]byte) error
- func (db *Database) Stats() DbStats
- func (db *Database) Sync() error
- type DbContext
- type DbMetrics
- type DbStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) DeleteByKey ¶
func (*Database) DeleteByPrefix ¶
func (*Database) GetByPrefix ¶
Click to show internal directories.
Click to hide internal directories.