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

Issue 2646733008: server/auth: Add in-process LRU-based cache. (Closed)

Created:
3 years, 11 months ago by dnj
Modified:
3 years, 11 months ago
Reviewers:
Vadim Sh., iannucci
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

server/auth: Add in-process LRU-based cache. Add an in-process LRU-based GlobalCache implementation. Use it for unit tests instead of a mocked cache. BUG=chromium:682465 TEST=unit Review-Url: https://codereview.chromium.org/2646733008 Committed: https://github.com/luci/luci-go/commit/879672eba7a6a9dd58326c99269cf50ea456115a

Patch Set 1 : server/auth: Add in-process LRU-based cache. #

Patch Set 2 : Updated patchset dependency #

Total comments: 5

Patch Set 3 : Rename GlobalCache => Cache, ProcCache => MemoryCache. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -48 lines) Patch
M appengine/gaeauth/server/cache.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M appengine/gaemiddleware/context.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M server/auth/cache.go View 1 2 5 chunks +55 lines, -7 lines 0 comments Download
M server/auth/cache_test.go View 1 2 3 chunks +6 lines, -24 lines 0 comments Download
M server/auth/config.go View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M server/auth/delegation_test.go View 1 2 4 chunks +9 lines, -10 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (5 generated)
dnj
PTAL
3 years, 11 months ago (2017-01-20 23:40:26 UTC) #3
Vadim Sh.
https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go File server/auth/cache.go (right): https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go#newcode171 server/auth/cache.go:171: func ProcGlobalCache(size int) GlobalCache { put a big fat ...
3 years, 11 months ago (2017-01-20 23:53:09 UTC) #4
iannucci
https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go File server/auth/cache.go (right): https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go#newcode177 server/auth/cache.go:177: func (agc procGlobalCache) Get(c context.Context, key string) ([]byte, error) ...
3 years, 11 months ago (2017-01-21 00:34:56 UTC) #5
dnj
https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go File server/auth/cache.go (right): https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go#newcode171 server/auth/cache.go:171: func ProcGlobalCache(size int) GlobalCache { On 2017/01/20 23:53:08, Vadim ...
3 years, 11 months ago (2017-01-21 01:07:30 UTC) #6
Vadim Sh.
https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go File server/auth/cache.go (right): https://codereview.chromium.org/2646733008/diff/10005/server/auth/cache.go#newcode171 server/auth/cache.go:171: func ProcGlobalCache(size int) GlobalCache { On 2017/01/21 01:07:30, dnj ...
3 years, 11 months ago (2017-01-21 01:10:21 UTC) #7
dnj
Done, PTAL
3 years, 11 months ago (2017-01-21 02:07:34 UTC) #8
Vadim Sh.
lgtm
3 years, 11 months ago (2017-01-21 02:28:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2646733008/40001
3 years, 11 months ago (2017-01-21 03:22:53 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-21 03:38:13 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://github.com/luci/luci-go/commit/879672eba7a6a9dd58326c99269cf50ea456115a

Powered by Google App Engine
This is Rietveld 408576698