rdb

package
v0.0.0-...-10f8295 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = 6
)

Variables

This section is empty.

Functions

func DecodeDump

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

Types

type Entry

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

type HashMap

type HashMap []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, offset int64, 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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