Main > Programming > Libraries >

Apache::Cache 0.05

Apache::Cache 0.05

Sponsored Links

Apache::Cache 0.05 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.008 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 956
Date added: 2007-03-13
Publisher: Olivier Poitrey

Apache::Cache 0.05 description

Apache::Cache is a cache data accessible between Apache childrens.

SYNOPSIS

use Apache::Cache qw(:status);

my $cache = new Apache::Cache(default_expires_in=>"5 minutes");

# if the if the next line is called within 10 minutes, then this
# will return the cache value overwise, this will return undef and the
# status method will be equal to the constant EXPIRED (exported by Apache::Cache
# on demande via the :status tag)

# the next line try to get the data from the cache, if the data is stored in
# in the cache and if it not expired, then this return the data. Otherwise
# if data have never been store in the cache, or if its expired, this will
# return undef and the status() method will be equal to constant EXPIRED (exported
# by Apache::Cache on demand, via the :status tag)

my $value = $cache->get(Key);

if($cache->status eq EXPIRED)
{
# cant get the data from the cache, we will need to get it by the normal way
# (via database, from file...)
$value = get_my_data(Key); # here, the get_my_data() function is a function of your
# programe that generate a fresh value

# this data have to expires in 30 secondes
my $expires_in = 30 secondes;
$cache->set(Key => $value, $expires_in);
}
elsif($cache->status eq FAILURE)
{
# dont use cache, cache maybe busy by another child or something goes wrong
$value = get_my_data(Key);
}

This module allows you to cache data easily through shared memory. Whithin the framework of an apache/mod_perl use, this cache is accessible from any child process. The data validity is managed in the Cache::Cache model, but as well based on time than on size or number of keys.

Additionnally, you can implement a cache with Apache::Cache in your module without the risk of namespace clash because Apache::Cache is enclosed in the constructors packages caller (see Apache::SharedMem for more details).

Apache::Cache 0.05 Screenshot

Advertisements

Apache::Cache 0.05 Keywords

Bookmark Apache::Cache 0.05

Hyperlink code:
Link for forum:

Apache::Cache 0.05 Copyright

WareSeeker periodically updates pricing and software information of Apache::Cache 0.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 Apache::Cache 0.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
Cache::Cache Perl module contains the Cache interface. Free Download
Apache2::AuthenDBMCache is a Perl module for authentication caching. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
Cache::FastMemoryCache is a Perl module with in-memory cache of arbitrary data. Free Download
Apache::CryptHash is a Perl module with encrypted tokens for cookies. Free Download
PHPDance is an object-oriented PHP interface to the Sharedance cache server. Free Download
Apache::No404Proxy is a 404 free Proxy. Free Download
Cache::Mmap Perl module helps you to share data cache using memory mapped files. Free Download