cache: gitoa.ru/go-4devs/cache/provider/redis Index | Files

package redis

import "gitoa.ru/go-4devs/cache/provider/redis"

Index

Package Files

pool.go redigo.go

func New Uses

func New(pool func(context.Context) (Conn, error)) cache.Provider

New creates new provider.

func NewPool Uses

func NewPool(pool *redis.Pool) func(context.Context) (Conn, error)

NewPool creates redigo pool.

type Conn Uses

type Conn interface {
    Do(commandName string, args ...interface{}) (reply interface{}, err error)
    Send(commandName string, args ...interface{}) error
    Flush() error
    Close() error
}

Package redis imports 4 packages (graph). Updated 2020-09-24. Refresh now. Tools for package owners.