NAME

Redis::JobQueue::Util - String manipulation utilities.

VERSION

This documentation refers to Redis::JobQueue::Util version 1.19

SYNOPSIS

use 5.010;
use strict;
use warnings;

use Redis::CappedCollection::Util qw( format_message );
$string = format_message( 'Object %d loaded. Status: %s', $id, $message );

DESCRIPTION

String manipulation utilities.

EXPORTED FUNCTIONS

Use these functions by importing them into your package or by calling a fully-qualified method name.

format_reference

say format_reference( $object );

Dumps reference using preconfigured Data::Dumper. Produces less verbose output than default Data::Dumper settings.

format_message

$string = format_message( 'Object %d loaded. Status: %s', $id, $message );

Returns string formatted using printf-style syntax.

If there are more than one argument and the first argument contains %... conversions, arguments are converted to a string message using sprintf(). In this case, undefined values are printed as <undef> and references are converted to strings using "format_reference".

SEE ALSO

The basic operation of the Redis::JobQueue package modules:

Redis::JobQueue - Object interface for creating and executing jobs queues, as well as monitoring the status and results of jobs.

Redis::JobQueue::Job - Object interface for creating and manipulating jobs.

Redis::JobQueue::Util - String manipulation utilities.

Redis - Perl binding for Redis database.

SOURCE CODE

Redis::JobQueue is hosted on GitHub: https://github.com/TrackingSoft/Redis-JobQueue

AUTHOR

Sergey Gladkov, <sgladkov@trackingsoft.com>

Please use GitHub project link above to report problems or contact authors.

CONTRIBUTORS

Alexander Solovey

Jeremy Jordan

Vlad Marchenko

COPYRIGHT AND LICENSE

Copyright (C) 2012-2016 by TrackingSoft LLC.

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic at http://dev.perl.org/licenses/artistic.html.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.