mirror of
https://github.com/mailgun/groupcache.git
synced 2024-11-16 14:10:04 +00:00
Update README.md
This commit is contained in:
parent
e1f81f6bb1
commit
ff2d1f161e
10
README.md
10
README.md
@ -93,13 +93,13 @@ import (
|
||||
)
|
||||
|
||||
func ExampleUsage() {
|
||||
// Keep track of peers in our cluster and add our instance to the pool `http://localhost:8080`
|
||||
pool := groupcache.NewHTTPPoolOpts("http://localhost:8080", &groupcache.HTTPPoolOptions{})
|
||||
// Keep track of peers in our cluster and add our instance to the pool `http://localhost:8080`
|
||||
pool := groupcache.NewHTTPPoolOpts("http://localhost:8080", &groupcache.HTTPPoolOptions{})
|
||||
|
||||
// Add more peers to the cluster
|
||||
pool.Set("http://peer1:8080", "http://peer2:8080")
|
||||
// Add more peers to the cluster
|
||||
pool.Set("http://peer1:8080", "http://peer2:8080")
|
||||
|
||||
server := http.Server{
|
||||
server := http.Server{
|
||||
Addr: "localhost:8080",
|
||||
Handler: pool,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user