memcache

package
v0.0.0-...-7feb129 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: MIT Imports: 7 Imported by: 1

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 is a wrapper of the original memcached Client

func NewClient

func NewClient(server ...string) Client

NewClient returns a memcached client that wraps the original memcached client

func (*Client) GetWithTags

func (c *Client) GetWithTags(k string, tags []string) (item *memcache.Item, err error)

GetWithTags gets a cache with a key and tag(s). Tags cannot be omitted.

func (*Client) SetWithTags

func (c *Client) SetWithTags(item *memcache.Item, tags []string) error

SetWithTags sets a cache with key and tag(s). the cache can be invalidated by either of key or a tag.

Jump to

Keyboard shortcuts

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