disk

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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) (int64, error)

func (*Disk) FlagGet

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

Flag

func (*Disk) FlagSet

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

func (d *Disk) Name() string

func (*Disk) SetAdd

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

func (*Disk) SetGet

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

Set

func (*Disk) SetRemove

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