Add config for experimental events based cache (#311)
Signed-off-by: Faisal Memon <[email protected]>
This commit is contained in:
@@ -367,6 +367,8 @@ In order to run Tornjak with simple HTTP Connection only, make sure you don't cr
|
|||||||
| `customPlugins.notifier` | Custom plugins of type notifier are configured here | `{}` |
|
| `customPlugins.notifier` | Custom plugins of type notifier are configured here | `{}` |
|
||||||
| `experimental.enabled` | Allow configuration of experimental features | `false` |
|
| `experimental.enabled` | Allow configuration of experimental features | `false` |
|
||||||
| `experimental.cacheReloadInterval` | The amount of time between two reloads of the in-memory entry cache. | `5s` |
|
| `experimental.cacheReloadInterval` | The amount of time between two reloads of the in-memory entry cache. | `5s` |
|
||||||
|
| `experimental.eventsBasedCache` | Use events to update the cache with what's changed since the last update. | `false` |
|
||||||
|
| `experimental.pruneEventsOlderThan` | How old an event can be before being deleted. Used with events based cache. | `12h` |
|
||||||
| `experimental.featureFlags` | List of developer feature flags | `[]` |
|
| `experimental.featureFlags` | List of developer feature flags | `[]` |
|
||||||
| `tests.hostAliases` | List of host aliases for testing | `[]` |
|
| `tests.hostAliases` | List of host aliases for testing | `[]` |
|
||||||
| `tests.tls.enabled` | Flag for enabling tls for tests | `false` |
|
| `tests.tls.enabled` | Flag for enabling tls for tests | `false` |
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ server:
|
|||||||
{{- if eq (.enabled | toString) "true" }}
|
{{- if eq (.enabled | toString) "true" }}
|
||||||
experimental:
|
experimental:
|
||||||
cache_reload_interval: {{ .cacheReloadInterval | quote }}
|
cache_reload_interval: {{ .cacheReloadInterval | quote }}
|
||||||
|
events_based_cache: {{ .eventsBasedCache }}
|
||||||
|
prune_events_older_than: {{ .pruneEventsOlderThan | quote }}
|
||||||
{{- if gt (len .featureFlags) 0 }}
|
{{- if gt (len .featureFlags) 0 }}
|
||||||
feature_flags:
|
feature_flags:
|
||||||
{{- range .featureFlags }}
|
{{- range .featureFlags }}
|
||||||
|
|||||||
@@ -911,6 +911,10 @@ experimental:
|
|||||||
enabled: false
|
enabled: false
|
||||||
## @param experimental.cacheReloadInterval The amount of time between two reloads of the in-memory entry cache.
|
## @param experimental.cacheReloadInterval The amount of time between two reloads of the in-memory entry cache.
|
||||||
cacheReloadInterval: 5s
|
cacheReloadInterval: 5s
|
||||||
|
## @param experimental.eventsBasedCache Use events to update the cache with what's changed since the last update.
|
||||||
|
eventsBasedCache: false
|
||||||
|
## @param experimental.pruneEventsOlderThan How old an event can be before being deleted. Used with events based cache.
|
||||||
|
pruneEventsOlderThan: 12h
|
||||||
## @param experimental.featureFlags [array] List of developer feature flags
|
## @param experimental.featureFlags [array] List of developer feature flags
|
||||||
featureFlags: []
|
featureFlags: []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user