redis

package
v0.0.0-...-1429232 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CacheDuration = 6 * time.Hour

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

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

func New

func New() (*RedisClient, error)

func (*RedisClient) Get

func (client *RedisClient) Get(shortUrl string) string

func (*RedisClient) Set

func (client *RedisClient) Set(shortUrl string, originalUrl string)

Jump to

Keyboard shortcuts

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