Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@adonisjs/redis
Advanced tools
AdonisJs official redis provider to make working with redis fun and simple.
Provider to run redis commands from your Adonis app
Adonis redis is a wrapper on top of IoRedis to run redis commands from your Adonisjs app.
async/await
syntax.This repo/branch is supposed to run fine on all major OS platforms and targets Node.js >=7.0
Great! If you are planning to contribute to the framework, make sure to adhere to following conventions, since a consistent code-base is always joy to work with.
Run the following command to see list of available npm scripts.
npm run
npm run lint
command to check if there are any linting errors.test.failing()
method.travis
and appveyor
.Since Es6 is in, you should strive to use latest features. For example:
Spread
over arguments
keyword.bind
or call
. After calling these methods, we cannot guarantee the scope of any methods and in AdonisJs codebase we do not override the methods scope.It is always helpful if we try to follow certain practices when creating issues or PR's, since it will save everyone's time.
Regression tests are tests, which shows how a piece of code fails under certain circumstance, but the beauty is even after the failure, the test suite will never fail. Actually is a nice way to notify about bugs, but making sure everything is green.
The regression tests are created using
test.failing('2 + 2 is always 4, but add method returns 6', (assert) => {
assert.true(add(2, 2), 4)
})
Now since the add
method has a bug, it will return 6
instead of 4
. But the build will pass.
FAQs
AdonisJS addon for Redis
The npm package @adonisjs/redis receives a total of 8,870 weekly downloads. As such, @adonisjs/redis popularity was classified as popular.
We found that @adonisjs/redis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.