ledisdb/store/config.go

21 lines
430 B
Go
Raw Normal View History

2014-07-25 13:58:00 +04:00
package store
type Config struct {
2014-07-25 19:40:10 +04:00
Name string `json:"name"`
2014-07-25 13:58:00 +04:00
2014-07-25 19:40:10 +04:00
Path string `json:"path"`
2014-07-25 13:58:00 +04:00
2014-07-25 15:41:04 +04:00
//for leveldb, goleveldb
2014-07-25 19:40:10 +04:00
Compression bool `json:"compression"`
BlockSize int `json:"block_size"`
WriteBufferSize int `json:"write_buffer_size"`
CacheSize int `json:"cache_size"`
MaxOpenFiles int `json:"max_open_files"`
2014-07-25 15:41:04 +04:00
//for lmdb
2014-07-25 19:40:10 +04:00
MapSize int `json:"map_size"`
2014-08-02 11:16:16 +04:00
//for boltdb
NoSync bool `json:"nosync"`
2014-07-25 13:58:00 +04:00
}