go-store

module
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT

README

Two different kinds of stores available:

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

- ObjectStore: 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

- MemoryStorage: storage implementation that is just an in-memory `map[string][]byte`

DiskStorage and BlockStorage 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