store

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CacheDuration = 6 * time.Hour

Variables

This section is empty.

Functions

func RetrieveInitialUrl

func RetrieveInitialUrl(shortUrl string) string

func SaveUrl

func SaveUrl(shortUrl string, originalUrl string)

Types

type StorageService

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

Define the struct wrapper around raw Redis client

func InitializeStore

func InitializeStore() *StorageService

Initializing the store service and return a store pointer

Jump to

Keyboard shortcuts

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