kv

package
v2.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitGet

func BitGet(key string, idx int) (bool, error)

func BitSet

func BitSet(key string, idx int, val bool, ttl time.Duration) error

func BitSets

func BitSets(key string, val bool, ttl time.Duration, idx ...int) error

func Decr

func Decr(key string, val int, ttl time.Duration) (int, error)

func Delete

func Delete(key string) error

func Get

func Get(key string, rcv *string) error

func Incr

func Incr(key string, val int, ttl time.Duration) (int, error)

func MGet

func MGet(key string, rcv interface{}) error

func MSet

func MSet(key string, val interface{}, ttl time.Duration) error

func Register

func Register(i Interface)

func Set

func Set(key string, val string, ttl time.Duration) error

func TTL

func TTL(key string) (time.Duration, error)

Types

type Interface

type Interface interface {
	BitSet(key string, idx int, val bool, ttl time.Duration) error
	BitSets(key string, val bool, ttl time.Duration, idx ...int) error
	BitGet(key string, idx int) (bool, error)
	Set(key string, val string, ttl time.Duration) error
	Get(key string, rcv *string) error
	MSet(key string, val interface{}, ttl time.Duration) error
	MGet(key string, rcv interface{}) error
	Decr(key string, val int, ttl time.Duration) (int, error)
	Incr(key string, val int, ttl time.Duration) (int, error)
	TTL(key string) (time.Duration, error)
	Delete(key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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