redis

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 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 InitRedis

func InitRedis(options ...Options) *ConnPool

InitRedis func init RDS fd

func (*ConnPool) Close

func (p *ConnPool) Close() error

Close pool

func (*ConnPool) Delete

func (p *ConnPool) Delete(key any) *redis.Cmd

func (*ConnPool) Do

func (p *ConnPool) Do(args ...any) *redis.Cmd

Do command

func (*ConnPool) ExpireKey

func (p *ConnPool) ExpireKey(key any, seconds int64) *redis.Cmd

ExpireKey for key

func (*ConnPool) Get

func (p *ConnPool) Get(key any) *redis.Cmd

func (*ConnPool) Keys

func (p *ConnPool) Keys(keys any) *redis.Cmd

func (*ConnPool) Set

func (p *ConnPool) Set(key any, value any) *redis.Cmd

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