feat: #8824, cache refactor (#8851)

* feat: #8824, cache refactor

ability to disable caches
ability to download contents of cache
refactor cache modules to remove duplicated code

* fix: remove duplicate hit/miss tracking

check cacheEnabled in getUncachedKeys
This commit is contained in:
Barış Soner Uşaklı
2020-11-06 23:13:12 -05:00
committed by GitHub
parent bcbc085497
commit f1f9b225b0
23 changed files with 226 additions and 199 deletions

View File

@@ -23,14 +23,14 @@ get:
type: number
percentFull:
type: number
avgPostSize:
type: number
hits:
type: string
misses:
type: string
hitRatio:
type: string
enabled:
type: boolean
groupCache:
type: object
properties:
@@ -48,6 +48,8 @@ get:
type: string
hitRatio:
type: string
enabled:
type: boolean
localCache:
type: object
properties:
@@ -59,14 +61,14 @@ get:
type: number
percentFull:
type: number
dump:
type: boolean
hits:
type: string
misses:
type: string
hitRatio:
type: string
enabled:
type: boolean
objectCache:
type: object
properties:
@@ -84,6 +86,8 @@ get:
type: string
hitRatio:
type: string
enabled:
type: boolean
required:
- postCache
- groupCache