cache

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAuthServiceMessages

func HandleAuthServiceMessages(message *redis.Message)

Types

type Client

type Client interface {
	Set(key string, value interface{}, timeoutSeconds int) error
	Get(key string) (interface{}, error)
	Delete(key string) error
}
var (
	RedisClient Client
)

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

func NewRedis

func NewRedis(config config.RedisConfig) (*Redis, error)

func (*Redis) Delete

func (c *Redis) Delete(key string) error

func (*Redis) Get

func (c *Redis) Get(key string) (interface{}, error)

func (*Redis) Publish

func (c *Redis) Publish(channel string, message interface{})

func (*Redis) Set

func (c *Redis) Set(key string, value interface{}, timeoutSeconds int) error

func (*Redis) Subscribe

func (c *Redis) Subscribe(key string, handler func(message *redis.Message), channels ...string) *redis.PubSub

func (*Redis) Unsubscribe

func (c *Redis) Unsubscribe(key string)

type RedisSubscription

type RedisSubscription struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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