A simple and light repeat operation checker.
const { MemoryChecker } = require('repeat-checker');
const checker = new MemoryChecker();
function () {
if (!checker.checkAndSet('somekey', 1000)) {
throw new Error('must call it after 1 second');
}
// some codes.
}
Name | Status |
---|---|
Memory | √ |
Redis | Coming soon |
- Fork the Project.
- Create your Branch. (
git checkout -b features/someFeatures
) - Make your features.
- Create test cases for your features if need.
- Run
npm test
to validate your code. - Run
npm run lint
to check and fix code styles. - Commit your Changes. (
git commit -m 'Add some features'
) - Push to the Branch. (
git push origin features/someFeatures
) - Create a new Pull Request.
The project was published under MIT license.