Documentation ¶
Overview ¶
Package memcached implements cache.Cache via memcached.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache implements the cache.Cache interface.
func New ¶
New returns a new in-memory cache of the given size.
The namespace is the string to add to each key to avoid conflicts with more than one application or application instance using the same memcached server.
Memcached can spread cache values across multiple servers, which is why 'servers' is a string slice of addresses of the form "dns_name:port".
Click to show internal directories.
Click to hide internal directories.