-
-
19 May 2021 07:58:44 UTC
- Distribution: Resque
- Module version: 0.42
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (3)
- Testers (107 / 0 / 2)
- Kwalitee
Bus factor: 1- 24.67% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (38.71KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Class::Load
- Data::Compare
- DateTime
- FindBin
- Getopt::Long::Descriptive
- JSON
- List::MoreUtils
- Moose
- Moose::Exporter
- Moose::Role
- Moose::Util
- Moose::Util::TypeConstraints
- POSIX
- Redis
- Scalar::Util
- Sys::Hostname
- Time::Concise
- Time::HiRes
- Try::Tiny
- namespace::autoclean
- overload
- strict
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Resque::Stat - The stat subsystem. Used to keep track of integer counts.
VERSION
version 0.42
ATTRIBUTES
resque
METHODS
get
Returns the int value of a stat, given a string stat name.
my $value = $resque_stat->get( 'stat_name' );
set
Set the int value of a a given stat name.
$resque_stat->set( stat_name => 5 );
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.
my $value = $resque_stat->incr( 'stat_name', $optional_inc_by );
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.
my $value = $resque_stat->decr( 'stat_name', $optional_dec_by );
clear
Removes a stat from Redis, effectively setting it to 0.
$resque_stat->clear( 'stat_name' );
AUTHOR
Diego Kuperman <diego@freekeylabs.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2021 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.
Module Install Instructions
To install Resque, copy and paste the appropriate command in to your terminal.
cpanm Resque
perl -MCPAN -e shell install Resque
For more information on module installation, please visit the detailed CPAN module installation guide.