The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::Throttle::Lite::Backend::Simple - Simple (in-memory) backend for Throttle::Lite

VERSION

version 0.02

DESCRIPTION

This is very simple implemetation of the storage backend. It holds all data in memory. If you restart application all data will be flushed.

SYNOPSYS

    # inside your app.psgi
    enable 'Throttle::Lite', backend => 'Simple';

CONFIGURATION

The parameter backend must be set to Simple in order to use this storage backend with the Throttle::Lite middleware in your Plack application.

METHODS

reqs_done

Returns total proceeded requests for current key.

increment

Increments total proceeded requests by one for current key.

SEE ALSO

Plack::Middleware::Throttle::Lite

Plack::Middleware::Throttle::Lite::Backend::Abstract

AUTHOR

Anton Gerasimov <chim@cpan.org>

COPYRIGHT AND LICENSE

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.