Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

git.sr.ht/~mgirouard/redis-sandbox

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git.sr.ht/~mgirouard/redis-sandbox

Go Modules
Version
v0.0.0-20210430160940-ef93f2b84786
Version published
Created
Source

Golang Redis Sandbox

This repo is a collection of Redis experiments in Go.

Pub/Sub

The pubsub command shows a simple Redis Pub/Sub application where a subscriber listens on a named channel and publishers produce messages on named channels.

# start the dev stack
$ docker-compose up -d

# start a subscriber listening on the "foo" channel
$ go run cmd/pubsub foo

# produce a message on the same channel
$ go run cmd/pubsub foo Hello, world!

FAQs

Package last updated on 30 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts