Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: service/memcache/raw_interface.go

Issue 1270063003: Make the rest of the services have a similar raw/user interface structure. (Closed) Base URL: https://github.com/luci/gae.git@add_datastore
Patch Set: address comments Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « service/memcache/memcache.go ('k') | service/memcache/types.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package memcache
6
7 // RawCB is a simple error callback for most of the methods in RawInterface.
8 type RawCB func(error)
9
10 // RawItemCB is the callback for RawInterface.GetMulti. It takes the retrieved
11 // item and the error for that item (e.g. ErrCacheMiss) if there was one..
12 type RawItemCB func(Item, error)
13
14 // RawInterface is the full interface to the memcache service.
15 type RawInterface interface {
16 NewItem(key string) Item
17
18 AddMulti(items []Item, cb RawCB) error
19 SetMulti(items []Item, cb RawCB) error
20 GetMulti(keys []string, cb RawItemCB) error
21 DeleteMulti(keys []string, cb RawCB) error
22 CompareAndSwapMulti(items []Item, cb RawCB) error
23
24 Increment(key string, delta int64, initialValue *uint64) (newValue uint6 4, err error)
25
26 Flush() error
27
28 Stats() (*Statistics, error)
29 }
OLDNEW
« no previous file with comments | « service/memcache/memcache.go ('k') | service/memcache/types.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698