redis

package module
v0.0.0-...-a924a15 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 3 Imported by: 1

README

redis

Documentation

Index

Constants

View Source
const (
	// TCP Network
	TCP = "tcp"
	// UDP Network
	UDP = "udp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RConnect

type RConnect struct {
}

RConnect struct doc

func DefaultClient

func DefaultClient(address string) (*RConnect, error)

DefaultClient radix default client

func (RConnect) Close

func (r RConnect) Close() error

Close connect to redis

func (RConnect) Del

func (r RConnect) Del(key string) error

Del redis CLI command

func (RConnect) Expire

func (r RConnect) Expire(key string, ttl int) error

Expire redis CLI command

func (RConnect) Get

func (r RConnect) Get(key string) (string, error)

Get redis CLI command

func (RConnect) Set

func (r RConnect) Set(key, value string) error

Set redis CLI command

func (RConnect) TTL

func (r RConnect) TTL(key string) (int, error)

TTL redis CLI command

Jump to

Keyboard shortcuts

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