memcached_cache

package
v0.0.0-...-61f2a12 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 3 Imported by: 0

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