redis

package
v0.0.0-...-48543aa Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store redis.Conn

Store variabels

Functions

func GetConnection

func GetConnection(host string) redis.Conn

GetConnection function return store

func InitRedis

func InitRedis(conn string) (redis.Conn, error)

InitRedis func return: redis.Conn

Types

type Redis

type Redis struct {
}

Redis type

func (*Redis) GetRowsCached

func (rd *Redis) GetRowsCached(store redis.Conn, keys string) (string, error)

GetRowsCached params @keys: string return string, error

func (*Redis) RowsCached

func (rd *Redis) RowsCached(store redis.Conn, keys string, data []byte, ttl int64) ([]byte, error)

RowsCached params @keys: string @data: []byte @ttl: int return []byte, error

Jump to

Keyboard shortcuts

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