redis

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnPool

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

ConnPool is RDS struct

func InitRedisPool added in v1.7.8

func InitRedisPool(options ...Options) *ConnPool

InitRedisPool func init RDS fd

func (*ConnPool) Close

func (p *ConnPool) Close()

Close pool

func (*ConnPool) Delete

func (p *ConnPool) Delete(key interface{}) *redis.Cmd

DelKey for key

func (*ConnPool) Do

func (p *ConnPool) Do(args ...interface{}) *redis.Cmd

Do commands

func (*ConnPool) ExpireKey

func (p *ConnPool) ExpireKey(key interface{}, seconds int64) *redis.Cmd

ExpireKey for key

func (*ConnPool) Get

func (p *ConnPool) Get(key interface{}) *redis.Cmd

Get

func (*ConnPool) Keys

func (p *ConnPool) Keys(keys interface{}) *redis.Cmd

keys

func (*ConnPool) Set

func (p *ConnPool) Set(key interface{}, value interface{}) *redis.Cmd

Set

type Options

type Options func(*redis.Options)

Jump to

Keyboard shortcuts

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