cache

package
v0.0.0-...-a1b16c7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 6 Imported by: 0

README

cache

v1x1采取Redis作为持续化缓存的选择。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisPool *redis.Pool

Functions

func Del

func Del(key string) error

func Get

func Get(key string) (string, error)

func Init

func Init(rc config.RedisConfig)

func Set

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

func SetExp

func SetExp(key string, value interface{}, expSec int) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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