share

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShareCache

type ShareCache struct {
	// contains filtered or unexported fields
}

ShareCache open local bbotdb or connect to unix socket grpc

func NewShareCache

func NewShareCache(dbPath string, socket string, batch ...string) *ShareCache

func (*ShareCache) Close

func (a *ShareCache) Close() error

func (*ShareCache) Delete

func (a *ShareCache) Delete(k ...[]byte) error

func (*ShareCache) Get

func (a *ShareCache) Get(k []byte) ([]byte, error)

func (*ShareCache) OpenStore

func (s *ShareCache) OpenStore() (cache.RecursionCache, error)

OpenStore open local db or try to connect remote db

func (*ShareCache) Put

func (a *ShareCache) Put(k []byte, v []byte) error

func (*ShareCache) Range

func (a *ShareCache) Range(f func(key []byte, value []byte) bool) error

Jump to

Keyboard shortcuts

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