Main > Programming > Libraries >

Cache::Cache 1.05

Cache::Cache 1.05

Sponsored Links

Cache::Cache 1.05 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.034 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 880
Date added: 2007-05-28
Publisher: DeWitt Clinton

Cache::Cache 1.05 description

Cache::Cache Perl module contains the Cache interface.

The Cache modules are designed to assist a developer in persisting data for a specified period of time. Often these modules are used in web applications to store data locally to save repeated and redundant expensive calls to remote machines or databases. People have also been known to use Cache::Cache for its straightforward interface in sharing data between runs of an application or invocations of a CGI-style script or simply as an easy to use abstraction of the filesystem or shared memory.

The Cache::Cache interface is implemented by classes that support the get, set, remove, size, purge, and clear instance methods and their corresponding static methods for persisting data across method calls.

USAGE

First, choose the best type of cache implementation for your needs. The simplest cache is the MemoryCache, which is suitable for applications that are serving multiple sequential requests, and wish to avoid making redundant expensive queries, such as an Apache/mod_perl application talking to a database. If you wish to share that data between processes, then perhaps the SharedMemoryCache is appropriate, although its behavior is tightly bound to the underlying IPC mechanism, which varies from system to system, and is unsuitable for large objects or large numbers of objects.

When the SharedMemoryCache is not acceptable, then FileCache offers all of the same functionality with similar performance metrics, and it is not limited in terms of the number of objects or their size. If you wish to maintain a strict limit on the size of a file system based cache, then the SizeAwareFileCache is the way to go. Similarly, the SizeAwareMemoryCache and the SizeAwareSharedMemoryCache add size management functionality to the MemoryCache and SharedMemoryCache classes respectively.

Using a cache is simple. Here is some sample code for instantiating and using a file system based cache.

use Cache::FileCache;

my $cache = new Cache::FileCache( );

my $customer = $cache->get( $name );

if ( not defined $customer )
{
$customer = get_customer_from_db( $name );
$cache->set( $name, $customer, "10 minutes" );
}

return $customer;

Cache::Cache 1.05 Screenshot

Advertisements

Cache::Cache 1.05 Keywords

Bookmark Cache::Cache 1.05

Hyperlink code:
Link for forum:

Cache::Cache 1.05 Copyright

WareSeeker periodically updates pricing and software information of Cache::Cache 1.05 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Cache::Cache 1.05 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Tie::FileLRUCache is a lightweight but robust filesystem based persistent LRU cache. Free Download
Data::Walker is a tool for navigating through Perl data structures. Free Download
Cache::BerkeleyDB Perl module implements the Cache::Cache interface. Free Download
Clichart is an application intended for quick summarization and visualization of data, especially from system logs. Free Download
Netscape::Cache is a Perl object class for accessing Netscape cache files. Free Download
Data::Region Perl module can define hierarchical areas with behaviors. Free Download
CODEX is a software designed for applications with a moderate number of clients requesting authentication keys. Free Download
Test::Data is a Perl module to test functions for particular variable types. Free Download