Skip to content

Commit

Permalink
Updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Dec 28, 2019
1 parent 879d454 commit 319aab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import (
func main() {

// Create the pool and first connection
_ = cache.Connect("redis://localhost:6379", 0, 10, 0, 240, true)
_ = cache.Connect("redis://localhost:6379", 0, 10, 0, 240, true, redis.DialKeepAlive(10*time.Second))

// Set a key
_ = cache.Set("key-name", "the-value", "dependent-key-1", "dependent-key-2")
Expand Down

0 comments on commit 319aab7

Please sign in to comment.