structures

package
v0.0.0-...-70491fa Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdC_MSet

func CmdC_MSet(kvs []string) error

Multiply SET command

func CmdR_MGet

func CmdR_MGet(keys []string) []string

Multiply GET command

Types

type Pair

type Pair struct {
	First  string
	Second string
}

func (*Pair) CmdC_PSet

func (this *Pair) CmdC_PSet(first, second string)

Set the pair first value and second value.

func (*Pair) CmdR_PGet

func (this *Pair) CmdR_PGet() (string, string)

Get the pair first value and second value.

func (*Pair) Name

func (this *Pair) Name() string

type String

type String struct {
	Value string
}

func (*String) CmdC_Incr

func (this *String) CmdC_Incr() (int, error)

Increment string value

func (*String) CmdC_Set

func (this *String) CmdC_Set(v string)

Set string value or create

func (*String) CmdR_Get

func (this *String) CmdR_Get() string

Get value of string

func (*String) Marshal

func (this *String) Marshal() []byte

func (*String) Name

func (this *String) Name() string

func (*String) Unmarshal

func (this *String) Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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