redis

package
v0.0.0-...-dffa276 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(key string, value string) error

func CacheResponse

func CacheResponse(c *gin.Context, keyPrefix string, keyBody string, resGenerator responseGenerator) (string, int, error)

CacheResponse caches a response if redis server is available.

func Del

func Del(key string) error

func Get

func Get(key string) (value string, err error)

func GetClient

func GetClient() rueidis.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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