Class Resque_Stat

InheritanceResque_Stat

Resque statistic management (jobs processed, failed, etc)

Public Methods

Hide inherited methods

MethodDescriptionDefined By
clear() Delete a statistic with the given name. Resque_Stat
decr() Decrement the value of the specified statistic by a certain amount (default is 1) Resque_Stat
get() Get the value of the supplied statistic counter for the specified statistic. Resque_Stat
incr() Increment the value of the specified statistic by a certain amount (default is 1) Resque_Stat

Method Details

clear() public static method

Delete a statistic with the given name.

public static boolean clear ( $stat )
$stat string

The name of the statistic to delete.

return boolean

True if successful, false if not.

decr() public static method

Decrement the value of the specified statistic by a certain amount (default is 1)

public static boolean decr ( $stat, $by 1 )
$stat string

The name of the statistic to decrement.

$by int

The amount to decrement the statistic by.

return boolean

True if successful, false if not.

get() public static method

Get the value of the supplied statistic counter for the specified statistic.

public static mixed get ( $stat )
$stat string

The name of the statistic to get the stats for.

return mixed

Value of the statistic.

incr() public static method

Increment the value of the specified statistic by a certain amount (default is 1)

public static boolean incr ( $stat, $by 1 )
$stat string

The name of the statistic to increment.

$by int

The amount to increment the statistic by.

return boolean

True if successful, false if not.