Skip to content

Elasticache aware memcached client with Auto Discovery support. Uses gomemcache (https://github.com/bradfitz/gomemcache).

License

Notifications You must be signed in to change notification settings

getsocial-rnd/go-elasticache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-elasticache

This is a fork of Integralist/go-elasticache with a few changes and additions:

  • Watcher support for detecting and applying server changes.
  • Removed logging and reliance on environment variables.
  • Remove unnecessary Node and Item types.
  • Replaced glide with dep as dependency manager.
  • Moved package to go-elasticache instead of go-elasticache/elasticache.

Auto Detect Cluster Changes

You can use the Watch method to detect changes in cluster configuration. The client is updated automatically when changes are detected.

// Make sure the endpoint has ".cfg" in it!
client, _ := elasticache.New("mycluster.fnjyzo.cfg.use1.cache.amazonaws.com")

ctx := context.WithCancel(context.Background())
defer cancel() // Call cancel when you are done with the memcache client

go client.Watch(ctx)

See Elasticache Auto Discovery docs for details.

About

Elasticache aware memcached client with Auto Discovery support. Uses gomemcache (https://github.com/bradfitz/gomemcache).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%