Plack::Middleware::Throttle::Lite::Backend::Simple - Simple (in-memory) backend for Throttle::Lite
version 0.02
This is very simple implemetation of the storage backend. It holds all data in memory. If you restart application all data will be flushed.
# inside your app.psgi enable 'Throttle::Lite', backend => 'Simple';
The parameter backend must be set to Simple in order to use this storage backend with the Throttle::Lite middleware in your Plack application.
Simple
Returns total proceeded requests for current key.
Increments total proceeded requests by one for current key.
Plack::Middleware::Throttle::Lite
Plack::Middleware::Throttle::Lite::Backend::Abstract
Anton Gerasimov <chim@cpan.org>
This software is copyright (c) 2013 by Anton Gerasimov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Plack::Middleware::Throttle::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Throttle::Lite
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Throttle::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.