gobeansdb

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNotSupport = errors.New("operation not support")
)

Functions

func Main

func Main()

Types

type DBConfig

type DBConfig struct {
	config.ServerConfig `yaml:"server,omitempty"`
	config.MCConfig     `yaml:"mc,omitempty"`
	store.HStoreConfig  `yaml:"hstore,omitempty"`
}

func (*DBConfig) ConfigPackages

func (c *DBConfig) ConfigPackages()

func (*DBConfig) InitDefault

func (c *DBConfig) InitDefault()

func (*DBConfig) Load

func (c *DBConfig) Load(confdir string)

type Storage

type Storage struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Storage) Client

func (s *Storage) Client() mc.StorageClient

type StorageClient

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

func (*StorageClient) Append

func (s *StorageClient) Append(key string, value []byte) (bool, error)

func (*StorageClient) Clean

func (s *StorageClient) Clean()

func (*StorageClient) Close

func (s *StorageClient) Close()

func (*StorageClient) Delete

func (s *StorageClient) Delete(key string) (bool, error)

func (*StorageClient) Get

func (s *StorageClient) Get(key string) (*mc.Item, error)

func (*StorageClient) GetMulti

func (s *StorageClient) GetMulti(keys []string) (map[string]*mc.Item, error)

func (*StorageClient) GetSuccessedTargets

func (s *StorageClient) GetSuccessedTargets() []string

func (*StorageClient) Incr

func (s *StorageClient) Incr(key string, value int) (int, error)

func (*StorageClient) Len

func (s *StorageClient) Len() int

func (*StorageClient) Process

func (s *StorageClient) Process(cmd string, args []string) (status string, msg string)

func (*StorageClient) Set

func (s *StorageClient) Set(key string, item *mc.Item, noreply bool) (bool, error)

Jump to

Keyboard shortcuts

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