rdb

package
v0.0.0-...-0df215e Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: MIT, MIT Imports: 9 Imported by: 0

README

rdb

Handling Redis RDB format.

Documentation

Index

Constants

View Source
const (
	Version = 6
)

Variables

This section is empty.

Functions

func DecodeDump

func DecodeDump(p []byte) (interface{}, error)

func Dump

func Dump(obj interface{}) ([]byte, error)

Types

type Entry

type Entry struct {
	DB       uint32
	Key      []byte
	ValDump  []byte
	ExpireAt uint64
}

type Hash

type Hash []struct {
	Field, Value []byte
}

type List

type List [][]byte

type Loader

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

func NewLoader

func NewLoader(r io.Reader) *Loader

func (*Loader) LoadChecksum

func (l *Loader) LoadChecksum() error

func (*Loader) LoadEntry

func (l *Loader) LoadEntry() (entry *Entry, err error)

func (*Loader) LoadHeader

func (l *Loader) LoadHeader() error

func (Loader) Read

func (r Loader) Read(p []byte) (int, error)

type Set

type Set [][]byte

type String

type String []byte

type ZSet

type ZSet []struct {
	Member []byte
	Score  float64
}

Jump to

Keyboard shortcuts

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