cache

package
v0.0.0-...-0e07719 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_ADDR = "localhost:6379"
View Source
var DEFAULT_ID = "Redis"
View Source
var DEFAULT_PASSWORD = ""

Functions

func AddToSet

func AddToSet(key string, value string) error

Add a single value into the set defined by a "key" name

func CreateRedisInstance

func CreateRedisInstance(id string) (*redis.Client, error)

func GetSetMemberValues

func GetSetMemberValues(key string) ([]string, error)

func PublishMessage

func PublishMessage(channel string, message []byte) error

Publish message to Redis channel

func RemoveFromSet

func RemoveFromSet(key string, value string) error

Remove existing value from the set defined by a "key" name

func SubscribeToChannel

func SubscribeToChannel(channel string, handler func(message map[string]string))

Subscribe to a Redis channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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