rocksdbKit

package
v3.0.81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NewDefaultReadOptions
	/*
		PS: 搭配 DB.Get() 使用.
	*/
	NewDefaultReadOptions func() *grocksdb.ReadOptions = grocksdb.NewDefaultReadOptions

	// NewDefaultWriteOptions
	/*
		PS: 搭配 DB.Put() 使用.
	*/
	NewDefaultWriteOptions func() *grocksdb.WriteOptions = grocksdb.NewDefaultWriteOptions
)

Functions

func NewDefaultDBOptions

func NewDefaultDBOptions() *grocksdb.Options

func OpenDB

func OpenDB(dirPath string, opts *grocksdb.Options) (*grocksdb.DB, error)

OpenDB

@param opts 可以为nil(将采用默认值)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL