Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { // Central lock is required for Set/Delete operations. Could be possible // to do key-level locking which would allow update Set operations to not // take a global lock, but not doing that for now. sync.RWMutex // contains filtered or unexported fields }
Database is the main interface for data storage and access for callers.
func New ¶
func New() *Database
New creates a new Database struct, loads any available data from disk, schedules regular checkpointing, then returns a pointer to the Database indicating it is ready to serve requests.
Click to show internal directories.
Click to hide internal directories.