redis

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMixCache

func NewMixCache(addr string, debug bool, maxActive int, idleTimeout time.Duration, wait bool, dialOptions ...redis.DialOption) (client standard.MixCache, err error)

todo 过期

Types

type Client

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

func (*Client) Do

func (c *Client) Do(commandName string, args ...interface{}) (reply interface{}, err error)

func (*Client) Get

func (c *Client) Get(key string) (resp interface{}, err error)

func (*Client) Set

func (c *Client) Set(key string, val interface{}, expire int) (resp interface{}, err error)

Jump to

Keyboard shortcuts

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