Diego Kuperman > Resque-0.18 > Resque::Stat

Download:
Resque-0.18.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.18   Source  

NAME ^

Resque::Stat - The stat subsystem. Used to keep track of integer counts.

VERSION ^

version 0.18

ATTRIBUTES ^

resque

METHODS ^

get

Returns the int value of a stat, given a string stat name.

incr

For a string stat name, increments the stat by one.

Can optionally accept a second int parameter. The stat is then incremented by that amount.

decr

For a string stat name, decrements the stat by one.

Can optionally accept a second int parameter. The stat is then decremented by that amount.

clear

Removes a stat from Redis, effectively setting it to 0.

AUTHOR ^

Diego Kuperman <diego@freekeylabs.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Diego Kuperman.

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: