Anton Gerasimov > Plack-Middleware-Throttle-Lite-0.05 > Plack::Middleware::Throttle::Lite::Backend::Simple

Download:
Plack-Middleware-Throttle-Lite-0.05.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

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

VERSION ^

version 0.05

SYNOPSIS ^

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

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.

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.

syntax highlighting: