memcached

package module
v0.0.0-...-1e229b6 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 3 Imported by: 0

README

go-memcached

Package memcached provides an implementation of httpcache.Cache that stores and retrieves data using a Memcache (client).

It's based on mgo-cache.

Documentation

Overview

Package couchcache provides an implementation of httpcache.Cache that stores and retrieves data using 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 objects store and retrieve data using Memcached.

func New

func New(address string, exp time.Duration) *Cache

New returns a new Cache

func (*Cache) Delete

func (c *Cache) Delete(key string)

func (*Cache) Get

func (c *Cache) Get(key string) (resp []byte, ok bool)

func (*Cache) Indexes

func (c *Cache) Indexes()

func (*Cache) Set

func (c *Cache) Set(key string, content []byte)

Jump to

Keyboard shortcuts

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