Este conteúdo não está disponível no idioma selecionado.
Chapter 10. Enabling the Red Hat Developer Hub plugin assets cache
By default, Red Hat Developer Hub does not cache plugin assets. You can use a Redis cache store to improve Developer Hub performance and reliability. Configured plugins in Developer Hub receive dedicated cache connections, which are powered by the Keyv Redis client.
Prerequisites
- You have installed Red Hat Developer Hub.
-
You have an active Redis server. For more information on setting up an external Redis server, see the
official Redis documentation.
Procedure
Enable the Developer Hub cache by defining Redis as the cache store type and entering your Redis server connection URL in your
app-config.yamlfile.app-config.yamlfile fragmentbackend: cache: store: redis connection: redis://user:pass@cache.example.com:6379backend: cache: store: redis connection: redis://user:pass@cache.example.com:6379Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the cache for Techdocs by adding the
techdocs.cache.ttlsetting in yourapp-config.yamlfile. This setting specifies how long, in milliseconds, a statically built asset should stay in the cache.app-config.yamlfile fragmenttechdocs: cache: ttl: 3600000techdocs: cache: ttl: 3600000Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Optionally, enable the cache for unsupported plugins that support this feature. See their respective documentation for details.