Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultLRUCache = 256 << 20 // 256 M
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MetaConfig ¶
type MetaHandler ¶
type MetaHandler interface { Get(ctx context.Context, key []byte) ([]byte, error) Put(ctx context.Context, kv rdb.KV) error Delete(ctx context.Context, key []byte) error DeleteRange(ctx context.Context, start, end []byte) error Flush(ctx context.Context) error NewIterator(ctx context.Context, opts ...rdb.OpOption) rdb.Iterator SetHandleIOError(handler func(err error)) Close(ctx context.Context) error }
func NewMetaHandler ¶
func NewMetaHandler(dirpath string, config MetaConfig) (mh MetaHandler, err error)
Click to show internal directories.
Click to hide internal directories.