Class Resque_Stat
Inheritance | Resque_Stat |
---|
Resque statistic management (jobs processed, failed, etc)
Public Methods
Method | Description | Defined 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
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. |
---|
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 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. |
---|
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. |
---|