Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 type RawCB func(error) | |
| 8 | |
| 9 type RawItemCB func(Item, error) | |
| 10 | |
| 11 // RawInterface is the full interface to the memcache service. | |
| 12 type RawInterface interface { | |
|
dnj
2015/08/03 22:37:25
Exported methods need comments.
| |
| 13 NewItem(key string) Item | |
| 14 | |
| 15 AddMulti(items []Item, cb RawCB) error | |
| 16 SetMulti(items []Item, cb RawCB) error | |
| 17 GetMulti(keys []string, cb RawItemCB) error | |
| 18 DeleteMulti(keys []string, cb RawCB) error | |
| 19 CompareAndSwapMulti(items []Item, cb RawCB) error | |
| 20 | |
| 21 Increment(key string, delta int64, initialValue *uint64) (newValue uint6 4, err error) | |
| 22 | |
| 23 Flush() error | |
| 24 | |
| 25 Stats() (*Statistics, error) | |
| 26 } | |
| OLD | NEW |