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

Unified Diff: server/auth/config.go

Issue 2646733008: server/auth: Add in-process LRU-based cache. (Closed)
Patch Set: Rename GlobalCache => Cache, ProcCache => MemoryCache. Created 3 years, 11 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 | « server/auth/cache_test.go ('k') | server/auth/delegation_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/auth/config.go
diff --git a/server/auth/config.go b/server/auth/config.go
index af4b664fa0f3846992fb6209d82f2053026f115b..9f8974e21035e007abe7e1d26f0f6af875cd7af7 100644
--- a/server/auth/config.go
+++ b/server/auth/config.go
@@ -47,15 +47,15 @@ type Config struct {
// outlive it.
AnonymousTransport func(c context.Context) http.RoundTripper
- // GlobalCache implements service-global strongly consistent cache.
+ // Cache implements a strongly consistent cache.
//
// Usually backed by memcache. Should do namespacing itself (i.e. the auth
// library assumes full ownership of the keyspace).
- GlobalCache GlobalCache
+ Cache Cache
}
-// GlobalCache implements service-global strongly consistent cache.
-type GlobalCache interface {
+// Cache implements a strongly consistent cache.
+type Cache interface {
// Get returns a cached item or (nil, nil) if it's not in the cache.
//
// Any returned error is transient error.
« no previous file with comments | « server/auth/cache_test.go ('k') | server/auth/delegation_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698