Git Product home page Git Product logo

adonis-request-throttler's People

Contributors

evoactivity avatar kevinrouchut avatar reg2005 avatar vladyslavparashchenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adonis-request-throttler's Issues

Can't use current adonis-cache instance

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.

How to implement adonis-request-throttler after adonis-typings change

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.

Screenshot 2021-07-14 at 11 08 06 AM

Was this change intentional?

Thanks,
Ranjith

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.