command
module
Version:
v0.0.0-...-2c015f6
Opens a new window with list of versions in this module.
Published: Aug 2, 2016
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
bgsave
Dump records from redis into mongodb.
The records will be written to mongodb ASAP, callers should control the frequency of writing.
The format of the record is defined as :
key(tablname:record_id) -> value(packed with msgpack, optional snappy compression)
environment variables:
- REDIS_HOST : eg: 127.0.0.1:6379
- MONGODB_URL : eg: mongodb://172.17.42.1/mydb
- NSQD_HOST : eg: http://172.17.42.1:4151
- ENABLE_SNAPPY: eg: true
install
install gpm, gvp first
$go get -u https://github.com/gonet2/bgsave/
$cd bgsave
$source gvp
$gpm
$go install bgsave
#install with docker
docker build -t bgsave .
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Package proto is a generated protocol buffer package.
|
Package proto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.