cache

package
v0.0.0-...-aa7e1ee Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserLocation

func GetUserLocation(userID string) *time.Location

GetUserLocation gets the Location in the cache, and if it wasn't found, it will check Redis and store the value found there, if any.

func InitCache

func InitCache()

InitCache initializes the cache

func SetUserLocation

func SetUserLocation(userID string, location *time.Location)

SetUserLocation stores the Location in the cache, and writes it to redis.

Types

type UserLocation

type UserLocation time.Location

UserLocation cache object

Jump to

Keyboard shortcuts

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