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

Issue 1354333002: Fix memcache.Interface.Get to return a memcache.Item (Closed)

Created:
5 years, 3 months ago by iannucci
Modified:
5 years, 3 months ago
CC:
chromium-reviews, infra-reviews+luci-gae_chromium.org
Base URL:
https://github.com/luci/gae.git@fix_meta_serialize
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

Fix memcache.Interface.Get to return a memcache.Item This intentionally doesn't change GetMulti. Since GetMulti is used for batch operations, it's actually more convenient to have a pipeline of actions (e.g. AddMulti -> GetMulti). Otherwise you have to carry around a []Item and a []string and keep them both in sync (overhead, error prone). R=dnj@chromium.org, estaab@chromium.org, maruel@chromium.org, tandrii@chromium.org, vadimsh@chromium.org BUG=https://github.com/luci/gae/issues/3 Committed: https://github.com/luci/gae/commit/7ea0f5dc2195392a7cf840d5bfe59fee239ad7eb

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -57 lines) Patch
M filter/count/count_test.go View 1 chunk +6 lines, -2 lines 0 comments Download
M filter/dscache/dscache_test.go View 14 chunks +34 lines, -30 lines 0 comments Download
M impl/memory/memcache_test.go View 6 chunks +20 lines, -20 lines 0 comments Download
M service/memcache/interface.go View 2 chunks +7 lines, -3 lines 0 comments Download
M service/memcache/memcache.go View 1 chunk +4 lines, -2 lines 1 comment Download

Depends on Patchset:

Messages

Total messages: 8 (2 generated)
iannucci
5 years, 3 months ago (2015-09-19 07:06:29 UTC) #1
nodir
https://codereview.chromium.org/1354333002/diff/1/service/memcache/memcache.go File service/memcache/memcache.go (right): https://codereview.chromium.org/1354333002/diff/1/service/memcache/memcache.go#newcode26 service/memcache/memcache.go:26: err := errors.SingleError(m.GetMulti([]Item{ret})) what about accepting ...Item in GetMulti?
5 years, 3 months ago (2015-09-19 08:14:30 UTC) #3
iannucci
On 2015/09/19 at 08:14:30, nodir wrote: > https://codereview.chromium.org/1354333002/diff/1/service/memcache/memcache.go > File service/memcache/memcache.go (right): > > https://codereview.chromium.org/1354333002/diff/1/service/memcache/memcache.go#newcode26 ...
5 years, 3 months ago (2015-09-19 08:39:37 UTC) #4
Vadim Sh.
lgtm
5 years, 3 months ago (2015-09-19 19:59:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354333002/1
5 years, 3 months ago (2015-09-19 20:03:39 UTC) #7
commit-bot: I haz the power
5 years, 3 months ago (2015-09-19 20:05:15 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://github.com/luci/gae/commit/7ea0f5dc2195392a7cf840d5bfe59fee239ad7eb

Powered by Google App Engine
This is Rietveld 408576698