redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	redis.Client
}

type RedisPubSub

type RedisPubSub struct {
	RedisClient
	Channel string
}

func (*RedisPubSub) Close

func (rPubSub *RedisPubSub) Close() error

func (*RedisPubSub) Publish

func (rPubSub *RedisPubSub) Publish(msg string) error

func (*RedisPubSub) ReceiveMessage

func (rPubSub *RedisPubSub) ReceiveMessage() chan string

func (*RedisPubSub) SetChannel

func (rPubSub *RedisPubSub) SetChannel(channel string) i.IPubSub

func (*RedisPubSub) SetClient

func (rPubSub *RedisPubSub) SetClient(iClient *i.IClient) i.IPubSub

type RedisQueue

type RedisQueue struct {
	RedisClient
	Topic string
}

func (*RedisQueue) Dequeue

func (rq *RedisQueue) Dequeue() (string, error)

func (*RedisQueue) Enqueue

func (rq *RedisQueue) Enqueue(val string) error

func (*RedisQueue) SetClient

func (rq *RedisQueue) SetClient(iClient *i.IClient) i.IQueue

func (*RedisQueue) SetTopic

func (rq *RedisQueue) SetTopic(topic string) i.IQueue

Jump to

Keyboard shortcuts

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