Documentation ¶
Overview ¶
Package redis implements an asgi channel layer that works with redis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRedisPool ¶
func CreateRedisPool(host string)
CreateRedisPool sets the redis pool to connect to the host.
Types ¶
type ChannelLayer ¶
type ChannelLayer struct {
// contains filtered or unexported fields
}
ChannelLayer is the main type to use as redis channel layer.
func NewChannelLayer ¶
func NewChannelLayer(expiry int, host string, prefix string, capacity int) *ChannelLayer
NewChannelLayer creates a new RedisChannelLayer
func (*ChannelLayer) NewChannel ¶
func (r *ChannelLayer) NewChannel(channelPrefix string) (channel string, err error)
NewChannel creates a new channelname
Click to show internal directories.
Click to hide internal directories.