storage

package
v0.0.0-...-00f8890 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: AGPL-3.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInt

func BytesToInt(b []byte) int

字节转换成整形

func Delete

func Delete(bucket, key []byte) error

Delete 删除

func Get

func Get(bucket, key []byte, decoder func([]byte) error) error

Get 获取

func GetByPrefix

func GetByPrefix(bucket, prefix []byte, decoder func([]byte, []byte) error) error

GetByPrefix 根据前缀获取

func GetValue

func GetValue(bucket, key []byte) ([]byte, error)

GetValue 获取值

func HasByPrefix

func HasByPrefix(bucket, prefix []byte) (bool, error)

HasByPrefix 根据前缀判断是否存在

func Incr

func Incr(bucket, key []byte, incr int) (int, error)

Incr

func IntToBytes

func IntToBytes(n int) []byte

整形转换成字节

func Put

func Put(bucket, key, value []byte) error

Put 放入

Types

This section is empty.

Jump to

Keyboard shortcuts

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