Mojo::Cache man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojo::Cache(3)	      User Contributed Perl Documentation	Mojo::Cache(3)

NAME
       Mojo::Cache - Naive In-Memory Cache

SYNOPSIS
	 use Mojo::Cache;

	 my $cache = Mojo::Cache->new(max_keys => 50);
	 $cache->set(foo => 'bar');
	 my $foo = $cache->get('foo');

DESCRIPTION
       Mojo::Cache is a naive in-memory cache with size limits.

       Note that this module is EXPERIMENTAL and might change without warning!

ATTRIBUTES
       Mojo::Cache implements the following attributes.

   "max_keys"
	 my $max_keys = $cache->max_keys;
	 $cache	      = $cache->max_keys(50);

       Maximum number of cache keys, defaults to 100.

METHODS
       Mojo::Cache inherits all methods from Mojo::Base and implements the
       following new ones.

   "get"
	 my $value = $cache->get('foo');

       Get cached value.

   "set"
	 $cache = $cache->set(foo => 'bar');

       Set cached value.

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-01			Mojo::Cache(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net