Skip to content

Instantly share code, notes, and snippets.

@OmisNomis
OmisNomis / redis-example.go
Created December 27, 2018 12:39 — forked from pohzipohzi/redis-example.go
Examples from redigo
// this is a file that puts together all redigo examples for convenience
// (see https://godoc.org/github.com/gomodule/redigo/redis#pkg-examples)
//
// start by ensuring that redis is running on port 6379 (`redis-server`)
// uncomment the main method as needed, and run the script (`go run main.go`)
package main
import (
"fmt"
"github.com/gomodule/redigo/redis"