Created
February 3, 2021 13:03
-
-
Save percybolmer/5ba94e24fba9f6f375042cfe824f6ee7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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