rpc

package
v1.18.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 3 Imported by: 0

Documentation

Overview

Package rpc provides remote calls to a redis server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rpc

type Rpc struct{ AtSock, Name string }

func New

func New(suffix, name string) *Rpc

func (*Rpc) Blpop

func (rpc *Rpc) Blpop(key string, keys ...string) ([][]byte, error)

func (*Rpc) Brpop

func (rpc *Rpc) Brpop(key string, keys ...string) ([][]byte, error)

func (*Rpc) Del

func (rpc *Rpc) Del(key string, keys ...string) (int, error)

func (*Rpc) Get

func (rpc *Rpc) Get(key string) ([]byte, error)

func (*Rpc) Hdel

func (rpc *Rpc) Hdel(key, field string, fields ...string) (int, error)

func (*Rpc) Hexists

func (rpc *Rpc) Hexists(key, field string) (int, error)

func (*Rpc) Hget

func (rpc *Rpc) Hget(key, field string) ([]byte, error)

func (*Rpc) Hgetall

func (rpc *Rpc) Hgetall(key string) ([][]byte, error)

func (*Rpc) Hkeys

func (rpc *Rpc) Hkeys(key string) ([][]byte, error)

func (*Rpc) Hset

func (rpc *Rpc) Hset(key, id string, value []byte) (int, error)

func (*Rpc) Lindex

func (rpc *Rpc) Lindex(key string, index int) ([]byte, error)

func (*Rpc) Lpush

func (rpc *Rpc) Lpush(key string, value []byte, values ...[]byte) (int, error)

func (*Rpc) Lrange

func (rpc *Rpc) Lrange(key string, start, stop int) ([][]byte, error)

func (*Rpc) Rpush

func (rpc *Rpc) Rpush(key string, value []byte, values ...[]byte) (int, error)

func (*Rpc) Set

func (rpc *Rpc) Set(key string, value []byte) error

Directories

Path Synopsis
Package args provides types for the redis RPC arguments.
Package args provides types for the redis RPC arguments.
Package reg provides an RPC to register redis handlers.
Package reg provides an RPC to register redis handlers.
Package reply provides types and methods for the redis RPC replies.
Package reply provides types and methods for the redis RPC replies.

Jump to

Keyboard shortcuts

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