Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultExpiry = time.Hour
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemcacheClient ¶
type MemcacheClient struct {
// contains filtered or unexported fields
}
MemcacheClient is a memcache client that gets its server list from SRV records, and periodically updates that ServerList.
func NewFixedServerMemcacheClient ¶
func NewFixedServerMemcacheClient(config MemcacheConfig, addresses ...string) *MemcacheClient
Does not use DNS, accepts static list of servers.
func NewMemcacheClient ¶
func NewMemcacheClient(config MemcacheConfig) *MemcacheClient
Click to show internal directories.
Click to hide internal directories.