go-store

module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: MIT

README

Two different kinds of stores available:

- KVStore: a simple, highly perform key-value store that writes straight to disk

- ObjectStore [WIP, not passing tests]: a key-value store for serializable objects, changes are written directly to disk and data structures are stored in an LRU cache to minimise the amount of serialization / deserialization required

The underlying storage method for these stores can be handled by:

- DiskStorage: storage implementation that stores directly to a filesystem, with optional settable key <--> filepath transform function

- BlockStorage: storage implementation that stores by chunking values and storing chunks under their respective hashes

Both support compression by implementing a Compressor interface, with default gzip and zlib implementations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL