redis

package
v0.0.0-...-86c91f4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) (string, error)

Get gets a key

func Init

func Init()

Init initializes redis client

func Set

func Set(key string, value interface{}, ttl int) (int, error)

Set stores a key with a TTL expresed in seconds

func TTL

func TTL(key string) (int, error)

TTL gets the TTL of a key expressed in seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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