redis

package
v0.0.0-...-981b013 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCache

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

func New

func New(address string) (*RedisCache, error)

func (*RedisCache) Get

func (r *RedisCache) Get(key string) (interface{}, error)

func (*RedisCache) Put

func (r *RedisCache) Put(key string, value interface{}, ttl time.Duration) error

Jump to

Keyboard shortcuts

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