Documentation ¶
Overview ¶
Package memcache provides an implementation of httpcache.Cache that uses gomemcache to store cached responses.
When built for Google App Engine, this package will provide an implementation that uses App Engine's memcache service. See the appengine.go file in this package for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an implementation of httpcache.Cache that caches responses in a memcache server.
func New ¶
New returns a new Cache using the provided memcache server(s) with equal weight. If a server is listed multiple times, it gets a proportional amount of weight.
func NewWithClient ¶
NewWithClient returns a new Cache with the given memcache client.
Click to show internal directories.
Click to hide internal directories.