
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@amplication/plugin-cache-redis
Advanced tools
Use a Redis cache in the service generated by Amplication.
This plugin adds the required code to use Redis as a cache in the service generated by Amplication.
It updates the following parts:
package.json..env.CacheModule configured to use Redis to the app.module.ts module imports list.docker-compose.yml file.The host setting is the host of the Redis server.
The port setting is the port on which the Redis server is accepting connections.
The ttl setting is the Time To Live for cached values.
The max setting is the maximum amount of requests that can be cached at once.
The username setting is the username used to connect to the server.
The password setting is the password used to connect to the server.
If no configuration is provided the .amplicationrc.json file will use be used as the default values.
{
"host": "localhost",
"port": 6379,
"ttl": 5000,
"username": null,
"password": null
}
buildRunning npm run build will bundle your plugin with Webpack for production.
devRunning npm run dev will watch your plugin's source code and automatically bundle it with every change.
testRunning npm run test will run the plugin's test suite.
This plugin provides you with a Redis cache module that you can use in your service as described here: https://docs.nestjs.com/techniques/caching#interacting-with-the-cache-store.
To configure, set the following environment variables:
REDIS_HOST - The host on which the Redis server is running.
REDIS_PORT - The port on which the Redis server is listening.
REDIS_TTL - The default Time To Live, in milliseconds, for cached requests on the Redis server.
REDIS_USERNAME - The username to be used to connect to the Redis server.
REDIS_PASSWORD - The password to be used to connect to the Redis server.
FAQs
Use Redis as a Cache in services generated with Amplication
We found that @amplication/plugin-cache-redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.