Wire up example backend to use in-memory cache.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-07-03 20:07:13 +02:00
committed by Eric Peterson
parent 8b438c7717
commit 5fe0c2ce78
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -112,7 +112,8 @@ techdocs:
# pullImage: true # or false to disable automatic pulling of image (e.g. if custom docker login is required)
publisher:
type: 'local' # Alternatives - 'googleGcs' or 'awsS3' or 'azureBlobStorage' or 'openStackSwift'. Read documentation for using alternatives.
cache:
ttl: 60000 # 1 minute cache for demonstration purposes. You may wish to set this higher in production.
sentry:
organization: my-company
+2
View File
@@ -29,6 +29,7 @@ export default async function createPlugin({
config,
discovery,
reader,
cache,
}: PluginEnvironment): Promise<Router> {
// Preparers are responsible for fetching source files for documentation.
const preparers = await Preparers.fromConfig(config, {
@@ -64,5 +65,6 @@ export default async function createPlugin({
logger,
config,
discovery,
cache,
});
}