memcache

package
v0.0.0-...-81db316 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2013 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

The memcache package offers Memcached as a backing store for a cache. It uses the gomemcache library to do the talking under the hood.

This package isn't intended for direct usage, it gets called only to register itself as a possible cache provider/

Example

import (
  github.com/tim-mit/cache
  _ github.com/tim-mit/cache/provider/memcache
)

store, err := cache.New("memcache://127.0.0.1:11211?timeout=5")
if err != nil {
   // handle error
}

err = store.Set("app.key", "Data to store")

[snip]

msg, err := store.Get("app.key")

Jump to

Keyboard shortcuts

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