cache

package
v0.0.0-...-1d03baa Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2013 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(r *http.Request, now uint64, name string, value interface{}) bool

Get fetches data for name at time now from memcache and unmarshals it into value. It reports whether it found the cache record and logs any errors to the admin console.

func Now

func Now(c appengine.Context) uint64

Now returns the current logical datastore time to use for cache lookups.

func Set

func Set(r *http.Request, now uint64, name string, value interface{})

Set puts value into memcache under name at time now. It logs any errors to the admin console.

func Tick

func Tick(c appengine.Context) uint64

Tick sets the current logical datastore time to a never-before-used time and returns that time. It should be called to invalidate the cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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