|
|
datastorecache: Add Locker field, public settings.
Add the Locker field to datastorecache. Previously, the Locker was not
configurable, and defaulted to memlock. However, locking is optional for
fetching configuration data. This decouples datastorecache from the
requirement that it has a working memcache, allowing it to be used by
other datastore implementations such as cloud.
This also changes the names of the gaeconfig datastore cache settings to
be public so that they can be used by external packages that want to
process the gaeconfig settings.
BUG= chromium:682465
TEST=unit
Review-Url: https://codereview.chromium.org/2645763002
Committed: https://github.com/luci/luci-go/commit/4590aea3339388a2946d2398c536d71789a0ca0a
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+141 lines, -50 lines) |
Patch |
 |
M |
appengine/datastorecache/cache.go
|
View
|
|
9 chunks |
+18 lines, -17 lines |
0 comments
|
Download
|
 |
M |
appengine/datastorecache/cache_test.go
|
View
|
|
6 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
appengine/datastorecache/handler.go
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A |
appengine/datastorecache/lock.go
|
View
|
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
 |
M |
appengine/datastorecache/model.go
|
View
|
|
2 chunks |
+2 lines, -10 lines |
0 comments
|
Download
|
 |
M |
appengine/datastorecache/util_test.go
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
luci_config/appengine/backend/datastore/ds.go
|
View
|
|
5 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
luci_config/appengine/gaeconfig/default.go
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
luci_config/appengine/gaeconfig/default_test.go
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
luci_config/appengine/gaeconfig/settings.go
|
View
|
|
6 chunks |
+19 lines, -11 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 8 (4 generated)
|