package
Version:
v0.0.0
Opens a new window with list of versions in this module.
Published: May 17, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DB holds a pointer to the badger database and the path to where it is stored.
NewDB is a constructor for the badger persister
It creates the files in the location given as parameter
Close closes the files/resources associated to the storage medium
Destroy removes the storage medium stored data
Get returns the value associated to the key
Has returns true if the given key is present in the persistance medium
Init initializes the storage medium and prepares it for usage
Put adds the value to the (key, val) storage medium
Remove removes the data associated to the given key
Source Files
¶
Click to show internal directories.
Click to hide internal directories.