Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
}
build
Running npm run build
will bundle your plugin with Webpack for production.
dev
Running npm run dev
will watch your plugin's source code and automatically bundle it with every change.
test
Running 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
The npm package @amplication/plugin-cache-redis receives a total of 66 weekly downloads. As such, @amplication/plugin-cache-redis popularity was classified as not popular.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.