disk

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

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

func NewDiskBackend

func NewDiskBackend() (*Disk, error)

func (*Disk) CacheGet

func (d *Disk) CacheGet(key string) (string, error)

Cache

func (*Disk) CacheSet

func (d *Disk) CacheSet(key string, value string, ttl int32) error

func (*Disk) Close

func (d *Disk) Close() error

Service methods

func (*Disk) CounterGet

func (d *Disk) CounterGet(key string) (int64, error)

Counter

func (*Disk) CounterIncrement

func (d *Disk) CounterIncrement(key string, increment int64) error

func (*Disk) FlagGet added in v0.1.3

func (d *Disk) FlagGet(key string) (bool, error)

Flag

func (*Disk) FlagSet added in v0.1.3

func (d *Disk) FlagSet(key string, value bool) error

func (*Disk) Flush

func (d *Disk) Flush() error

func (*Disk) KVDelete

func (d *Disk) KVDelete(key string) error

func (*Disk) KVGet

func (d *Disk) KVGet(key string) (*kv.Value, error)

KV

func (*Disk) KVPut

func (d *Disk) KVPut(key string, value *kv.Value) error

func (*Disk) Name added in v0.1.3

func (d *Disk) Name() string

func (*Disk) SetAdd added in v0.1.2

func (d *Disk) SetAdd(key, item string) ([]string, error)

func (*Disk) SetGet added in v0.1.2

func (d *Disk) SetGet(key string) ([]string, error)

Set

func (*Disk) SetRemove added in v0.1.2

func (d *Disk) SetRemove(key, item string) ([]string, error)

Jump to

Keyboard shortcuts

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