reg2005 / adonis-request-throttler Goto Github PK
View Code? Open in Web Editor NEWAdonis 5 request throttle based on Redis or Memory
License: MIT License
Adonis 5 request throttle based on Redis or Memory
License: MIT License
Hi,
I'm using adonis-cache package on my project and it's working fine when I try to store values on cache (with cache put for example), I check my redis server database and I can see the key and value without problems.
But, when I try to disable the built-in cache on this package, didn't see any value stored on my redis database, and the throttler didn't work.
Checking the output from RequestThrottler.verifyRequest(request)
I can see that number of attemps never up more than 1.
For now I set to true again the useOwnCache
option and work fine, it still using my redis database and register the number of attemps without problems, but it's better if I can use my current cache instance instead init two.
As note, adonis-cache it's registered before adonis-request-throttler, so isn't missconfiguration problem I guess.
I don't need redis or any other cache storange just a regular why the default setupt requiring other dependencies!!
Hi Guys,
I am using adonis-request-throttle in our project. Thank you for this package.
Can you tell me the new way of implementation .
Since the export default for RequestThrottler is changed from RequestThrottlerManagerContract to Array of RequestThrottlerManagerContract in adonis-typings. This is creating repetitive loop of pushing array of RequestThrottlerManagerContract. Please find screenshot for reference.
Was this change intentional?
Thanks,
Ranjith
Adonis users often use Luxon so there are 2 date packages installed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.