Ulrich Kautz > Mail-Decency > Mail::Decency::Helper

Download:
Mail-Decency-0.1.6.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Mail::Decency::Helper

DESCRIPTION ^

Helper modules for Decency policies or content filters

get

Read from cache

    my $ref = $cache->get( "name" );

set

Write to cache

    $cache->set( name => { some => [ "data" ] }, "5 s" );
    $cache->set( name => { some => [ "data" ] }, time() + 5 );

remove

Remove a key from cache

    $cache->remove( "name" );

entry

Return the Cache::Entry instance

    my $entry = $cache->entry( "name" );

hash_to_name

Transforms hash keys and values into short md5 string .. to be used for caching

AUTHOR ^

Ulrich Kautz <uk@fortrabbit.de>

COPYRIGHT ^

Copyright (c) 2010 the "AUTHOR" as listed above

LICENCSE ^

This library is free software and may be distributed under the same terms as perl itself.

syntax highlighting: