Exemple #1
0
func memcacheGobGet(c Context, key string, v interface{}) (*Item, error) {
	item, err := memcache.Gob.Get(appengine.Context(c), key, v)
	return (*Item)(item), err
}
Exemple #2
0
func memcacheGobSet(c Context, item *Item) error {
	return memcache.Gob.Set(appengine.Context(c), (*memcache.Item)(item))
}
Exemple #3
0
func memcacheGet(c Context, key string) (*Item, error) {
	item, err := memcache.Get(appengine.Context(c), key)
	return (*Item)(item), err
}