Categorygithub.com/scottjbarr/redis
modulepackage
1.0.1
Repository: https://github.com/scottjbarr/redis.git
Documentation: pkg.go.dev

# README

Redis

A package that provides some commonly needed extras when working with Redis.

Pool

Create a pool of Redis connections.

Subscriber

Subscribe to a Redis key, writing any received messages to a channel.

License

The MIT License (MIT)

Copyright (c) 2020 Scott Barr

See LICENSE

# Functions

NewLogWrapper returns a new LogWrapper.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewSubscriber creates a Subscriber that will use the provided redis.Pool to subscribe to the given key.
No description provided by the author
No description provided by the author

# Structs

LogWrapper wraps a standard Logger to implement the Logger interface.
Subscriber subscribes to a Redis key, and writes receive messages to a channel.

# Interfaces

Logger is a minimal interface for a logger.
Sender is an interface that is compatible with the redis.Send(..) function.

# Type aliases

No description provided by the author