Versions in this module Expand all Collapse all v0 v0.37.0 Dec 7, 2023 Changes in this version + var ErrBigObject = errors.New("too big object") + var ErrNoDefaultBucket = errors.New("no default bucket") + var ErrOutOfSpace = errors.New("no space left in the write cache") + func Get(db *bbolt.DB, key []byte) ([]byte, error) + func IterateDB(db *bbolt.DB, f func(oid.Address) error) error + func New(opts ...Option) writecache.Cache + func OpenDB(p string, ro bool, openFile func(string, int, fs.FileMode) (*os.File, error)) (*bbolt.DB, error) + type Option func(*options) + func WithBlobstor(bs writecache.MainStorage) Option + func WithFlushWorkersCount(c int) Option + func WithLogger(log *logger.Logger) Option + func WithMaxBatchDelay(d time.Duration) Option + func WithMaxBatchSize(sz int) Option + func WithMaxCacheSize(sz uint64) Option + func WithMaxObjectSize(sz uint64) Option + func WithMetabase(db writecache.Metabase) Option + func WithMetrics(metrics writecache.Metrics) Option + func WithNoSync(noSync bool) Option + func WithOpenFile(f func(string, int, fs.FileMode) (*os.File, error)) Option + func WithPath(path string) Option + func WithReportErrorFunc(f func(string, error)) Option + func WithSmallObjectSize(sz uint64) Option v0.37.0-rc.1 Sep 14, 2023