distribution/registry/storage/cache
Manish Tomar ce101280fe
fix redis caching issue
* fix redis caching issue

earlier redis cache was updated when there was any error including any
temporary connectivity issue. This would trigger set calls which would
further increase load and possibly connectivity errors from redis
leaving the system with continuous errors and high latency. Now the
cache is updated only when it is genuine cache miss. Other errors do not
trigger a cache update.

* add back tracker Hit() and Miss() calls

*squashed commits*
(cherry picked from commit 6f3e1c10260ef59ba4e9c42e939329fad9fdd8c3)
(cherry picked from commit 6738ff3320cf82cc2df919a95a1bde2f7789a501)

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2020-03-04 17:51:37 -08:00
..
cachecheck Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
memory context: remove definition of Context 2017-08-11 15:53:31 -07:00
redis Fix some typos 2018-09-24 09:05:44 +08:00
cache.go Use "Size" field to describe blobs over "Length" 2015-07-17 17:07:11 -07:00
cache_test.go Add cache unit test 2020-03-04 17:51:37 -08:00
cachedblobdescriptorstore.go fix redis caching issue 2020-03-04 17:51:37 -08:00