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

Unified Diff: service/memcache/types.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « service/memcache/raw_interface.go ('k') | service/taskqueue/context.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/memcache/types.go
diff --git a/service/memcache/types.go b/service/memcache/types.go
index 1bc49d8cde1cc123d664337ac0f6e317059eb819..c89d3756f016ad4c9210b7646286129e9f0e1eac 100644
--- a/service/memcache/types.go
+++ b/service/memcache/types.go
@@ -30,13 +30,15 @@ type Statistics struct {
type Item interface {
Key() string
Value() []byte
- Object() interface{}
Flags() uint32
Expiration() time.Duration
SetKey(string) Item
SetValue([]byte) Item
- SetObject(interface{}) Item
SetFlags(uint32) Item
SetExpiration(time.Duration) Item
+
+ // SetAll copies all the values from other into this item (including the hidden
+ // CasID field).
+ SetAll(other Item)
}
« no previous file with comments | « service/memcache/raw_interface.go ('k') | service/taskqueue/context.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698