cache

package
v0.0.0-...-1564ccb Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (redis.Conn, error)

Connect creates a new redis pool connection member

func Delete

func Delete(key string) error

Delete deletes an item from cache

func GetString

func GetString(key string) (string, error)

GetString gets an string from cache

func Init

func Init(redisURL string)

Init starts a new redis pool

func Ping

func Ping() error

Ping tests redis connection

func Renew

func Renew(key string, duration time.Duration) error

Renew set a new TTL for a key

func Setex

func Setex(key string, value interface{}, duration time.Duration) error

Setex sets an entry with TTL

Types

This section is empty.

Jump to

Keyboard shortcuts

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