Query: mojo::cache
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Mojo::Cache(3pm) User Contributed Perl Documentation Mojo::Cache(3pm)NAMEMojo::Cache - Naive in-memory cacheSYNOPSISuse Mojo::Cache; my $cache = Mojo::Cache->new(max_keys => 50); $cache->set(foo => 'bar'); my $foo = $cache->get('foo');DESCRIPTIONMojo::Cache is a naive in-memory cache with size limits.ATTRIBUTESMojo::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.METHODSMojo::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 ALSOMojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Cache(3pm)
Related Man Pages |
---|
mojo::cookiejar(3pm) - debian |
mojo::exception(3pm) - debian |
mojo::path(3pm) - debian |
mojo::server::cgi(3pm) - debian |
mojo::server::psgi(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
How can I do this in VI editor? |
One instance of comparing grep and awk |
Find columns in a file based on header and print to new file |