warekv

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheOption added in v0.0.7

type CacheOption struct {
	Open     bool   `yaml:"Open"`
	Strategy string `yaml:"Strategy"`
	MaxBytes uint64 `yaml:"MaxBytes"`
}

func DefaultCacheOption added in v0.0.7

func DefaultCacheOption() *CacheOption

type WareEngine

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

func Default

func Default() *WareEngine

func Engine

func Engine() *WareEngine

func New

func New(option *WareEngineOption) *WareEngine

func (*WareEngine) Close

func (e *WareEngine) Close()

func (*WareEngine) Delete

func (e *WareEngine) Delete(key *storage.Key)

func (*WareEngine) DeleteInTime added in v0.1.1

func (e *WareEngine) DeleteInTime(key *storage.Key)

func (*WareEngine) Get

func (e *WareEngine) Get(key *storage.Key) storage.Value

func (*WareEngine) Notify

func (e *WareEngine) Notify(key string, newVal interface{}, event int)

func (*WareEngine) Set

func (e *WareEngine) Set(key *storage.Key, value storage.Value)

func (*WareEngine) SetInTime

func (e *WareEngine) SetInTime(key *storage.Key, value storage.Value)

func (*WareEngine) Subscribe

func (e *WareEngine) Subscribe(option *manager.SubscribeManifest)

type WareEngineOption

type WareEngineOption struct {
	Shard       *storage.ShardOption           `yaml:"Shard"`
	GC          *storage.WareGCOption          `yaml:"GC"`
	Subscriber  *manager.SubscribeCenterOption `yaml:"Subscriber"`
	MachineInfo *machine.WareInfoOption        `yaml:"MachineInfo"`
	Cache       *CacheOption                   `yaml:"Cache"`
}

func DefaultOption

func DefaultOption() *WareEngineOption

Directories

Path Synopsis
ds

Jump to

Keyboard shortcuts

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