command
module
Version:
v0.0.0-...-3b88efa
Opens a new window with list of versions in this module.
Published: Dec 20, 2016
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Key to (multiple) values storage
Features:
- Capable to easily store billions of records.
- Supports record addition only.
- Support for concurrency.
- Highly tunable.
- Very simple.
How to use:
-
Build the mastore
binary.
-
Create a store directory (e.g. 'store') in your $HOME.
-
Create mastore.config
in your $HOME:
{
"StorePath": "$HOME/store",
"MaxAccumSizeMiB": 1024,
"MaxCacheSizeKiB": 1024,
"MaxIndexBlockSizeKiB": 8192,
"MinSingularSizeKiB": 8192,
"CompressionLevel": -1,
"MaxGoroutines": 1
}
-
Feed standard input of the binary with strings of form <key>\t<value>
:
mastore write < some_records.txt
-
Read all keys for the stored records:
mastore read -keys
-
Read records for a specified key:
mastore read -key=<key>
-
Enjoy!
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.