mongo

package
v0.0.0-...-9ae6259 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheUserHistory

func CacheUserHistory(rs redis.Redis, key string, userdata *mg.UserHistory, ttl time.Duration) error

CacheUserHistory stores the data to redis

func RestoreUserHistory

func RestoreUserHistory(rs redis.Redis, key string) (*mg.UserHistory, error)

RestoreUserHistory returns the data stored in redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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