View on
MetaCPAN
Sergey Gladkov > Redis-CappedCollection > Redis::CappedCollection::Util

Download:
Redis-CappedCollection-1.10.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.10   Source  

NAME ^

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

VERSION ^

This documentation refers to Redis::CappedCollection::Util version 1.10

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::CappedCollection package modules:

Redis::CappedCollection - Provides fixed size (determined by 'maxmemory' Redis server setting) collections with FIFO data removal.

SOURCE CODE ^

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

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.

syntax highlighting: