elasticache

package
v0.0.0-...-fb0aee0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*memcache.Client
}

Client embeds the memcache client so we can hide those details away

func New

func New() (*Client, error)

New returns an instance of the memcache client

func (*Client) Set

func (c *Client) Set(item *Item) error

Set abstracts the memcache client details away, by copying over the values provided by the user into the Set method, as coercing the custom Item type to the required memcache.Item type isn't possible. Downside is if memcache client fields ever change, it'll introduce a break

type Item

type Item memcache.Item

Item embeds the memcache client's type of the same name

type Node

type Node struct {
	URL  string
	Host string
	IP   string
	Port int
}

Node is a single ElastiCache node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL