Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client is a client for an ElastiCache cluster backed by memcache.
func NewClientWithInterface ¶
func NewClientWithInterface( awsClient elasticacheiface.ElastiCacheAPI, memcacheClient MemcacheClient, serverSelector ServerList, config Config, ) (*Client, error)
NewClientWithInterface returns a client instantiated from a custom elasticache client.
func (*Client) StartAutoDiscovery ¶
func (c *Client) StartAutoDiscovery()
StartAutoDiscovery is a blocking function that refreshes nodes on an interval.
type Config ¶
A Config contains the parameters required by a Client to interact with a memcache cluster.
type MemcacheClient ¶
type MemcacheClient interface { Get(key string) (*memcache.Item, error) Set(item *memcache.Item) error }
MemcacheClient is a client for getting and setting keys in memcache.
type ServerList ¶
type ServerList interface { SetServers(servers ...string) error memcache.ServerSelector }
ServerList is settable group of servers that memcache can use to choose one.
Click to show internal directories.
Click to hide internal directories.