Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created February 3, 2021 13:03
Show Gist options
  • Save percybolmer/5ba94e24fba9f6f375042cfe824f6ee7 to your computer and use it in GitHub Desktop.
Save percybolmer/5ba94e24fba9f6f375042cfe824f6ee7 to your computer and use it in GitHub Desktop.
// This shows how to change the whole Go4Data to use Redis instead
_, err := pubsub.NewEngine(WithRedisEngine(&redis.Options{
Addr: "localhost:6379",
Password: "",
DB: 0,
})
// This is how we would change back to DefaultEngine
_, err := pubsub.NewEngine(WithDefaultEngine(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment