Make cache readTimeout configurable.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-11-12 15:01:37 +01:00
committed by Eric Peterson
parent da0867f952
commit ef04b09f75
5 changed files with 65 additions and 5 deletions
+9
View File
@@ -241,6 +241,15 @@ export interface Config {
* createRouter method in your backend.
*/
ttl: number;
/**
* The time (in milliseconds) that the TechDocs backend will wait for
* a cache service to respond before continuing on as though the cached
* object was not found (e.g. when the cache sercice is unavailable).
*
* Defaults to 1000 milliseconds.
*/
readTimeout?: number;
};
/**