Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(config common.CacheConfig) (types.Cacher, error)
NewCache creates a new cache from a cache config
func NewStorageUnitFromConf ¶
func NewStorageUnitFromConf(cacheConf common.CacheConfig, dbConf common.DBConfig) (*storageUnit.Unit, error)
NewStorageUnitFromConf creates a new storage unit from a storage unit config
Types ¶
type ArgDB ¶
type ArgDB struct {
DBType common.DBType
Path string
BatchDelaySeconds int
MaxBatchSize int
MaxOpenFiles int
// BloomFilterBitsPerKey == 0, the Bloom filter is disabled.
// Otherwise, it specifies the number of bits per key used by the Bloom filter.
BloomFilterBitsPerKey int
}
ArgDB is a structure that is used to create a new storage.Persister implementation
Click to show internal directories.
Click to hide internal directories.