Chromium Code Reviews| Index: service/memcache/raw_interface.go |
| diff --git a/service/memcache/raw_interface.go b/service/memcache/raw_interface.go |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5a310b851569fabcbd71cad612ee4247938e0408 |
| --- /dev/null |
| +++ b/service/memcache/raw_interface.go |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package memcache |
| + |
| +type RawCB func(error) |
| + |
| +type RawItemCB func(Item, error) |
| + |
| +// RawInterface is the full interface to the memcache service. |
| +type RawInterface interface { |
|
dnj
2015/08/03 22:37:25
Exported methods need comments.
|
| + NewItem(key string) Item |
| + |
| + AddMulti(items []Item, cb RawCB) error |
| + SetMulti(items []Item, cb RawCB) error |
| + GetMulti(keys []string, cb RawItemCB) error |
| + DeleteMulti(keys []string, cb RawCB) error |
| + CompareAndSwapMulti(items []Item, cb RawCB) error |
| + |
| + Increment(key string, delta int64, initialValue *uint64) (newValue uint64, err error) |
| + |
| + Flush() error |
| + |
| + Stats() (*Statistics, error) |
| +} |