| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package memcache | 5 package memcache |
| 6 | 6 |
| 7 // Interface is the full interface to the memcache service. | 7 // Interface is the full interface to the memcache service. |
| 8 // | 8 // |
| 9 // The *Multi methods may return a "github.com/luci/luci-go/common/errors".Multi
Error | 9 // The *Multi methods may return a "github.com/luci/luci-go/common/errors".Multi
Error |
| 10 // if the rpc to the server was successful, but, e.g. some of the items were | 10 // if the rpc to the server was successful, but, e.g. some of the items were |
| 11 // missing. They may also return a regular error, if, for example, the rpc | 11 // missing. They may also return a regular error, if, for example, the rpc |
| 12 // failed outright. | 12 // failed outright. |
| 13 type Interface interface { | 13 type Interface interface { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 IncrementExisting(key string, delta int64) (newValue uint64, err error) | 66 IncrementExisting(key string, delta int64) (newValue uint64, err error) |
| 67 | 67 |
| 68 // Flush dumps the entire memcache state. | 68 // Flush dumps the entire memcache state. |
| 69 Flush() error | 69 Flush() error |
| 70 | 70 |
| 71 // Stats gets some best-effort statistics about the current state of mem
cache. | 71 // Stats gets some best-effort statistics about the current state of mem
cache. |
| 72 Stats() (*Statistics, error) | 72 Stats() (*Statistics, error) |
| 73 | 73 |
| 74 Raw() RawInterface | 74 Raw() RawInterface |
| 75 } | 75 } |
| OLD | NEW |