| 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 import ( | 7 import ( |
| 8 "time" | 8 "time" |
| 9 ) | 9 ) |
| 10 | 10 |
| 11 // Statistics represents a set of statistics about the memcache cache. This | 11 // Statistics represents a set of statistics about the memcache cache. This |
| 12 // may include items that have expired but have not yet been removed from the | 12 // may include items that have expired but have not yet been removed from the |
| 13 // cache. | 13 // cache. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 36 SetKey(string) Item | 36 SetKey(string) Item |
| 37 SetValue([]byte) Item | 37 SetValue([]byte) Item |
| 38 SetFlags(uint32) Item | 38 SetFlags(uint32) Item |
| 39 SetExpiration(time.Duration) Item | 39 SetExpiration(time.Duration) Item |
| 40 | 40 |
| 41 // SetAll copies all the values from other, except Key, into this item | 41 // SetAll copies all the values from other, except Key, into this item |
| 42 // (including the hidden CasID field). If other is nil, then all non-Key | 42 // (including the hidden CasID field). If other is nil, then all non-Key |
| 43 // fields are reset. | 43 // fields are reset. |
| 44 SetAll(other Item) | 44 SetAll(other Item) |
| 45 } | 45 } |
| OLD | NEW |