Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.542.337 Times

Apache::Cache 0.05

  Date Added: February 04, 2010  |  Visits: 720

Apache::Cache

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)



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)..

Requirements: No special requirements
Platforms: Linux
Keyword: Accessible Apachecache Cache Data Expired Libraries Programming Status Value
Users rating: 0/10

License: Freeware Size: 8.19 KB
USER REVIEWS
More Reviews or Write Review


APACHE::CACHE RELATED
Development Tools  -  Aluminium 0.4
Aluminium is a visual data-flow(-ish) programming language, designed for small web applications. It turned out as a visual data-flow based programming language. Aluminium was started as an effort to find a different way of...
 
Utilities  -  Hey::Cache 0.01
Hey::Cache is a Perl module to cache data multiple data structures. SYNOPSIS use Hey::Cache; my $cache = Hey::Cache->new( Namespace => 'WeatherApp2000', # string (optional, default='default') ...
10.24 KB  
Libraries  -  Cache::Cache 1.05
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...
34.82 KB  
Database Tools  -  Cache DBA 1.1
This is a PHP script to store and retrieve cache data from flat file databases. It takes a given object and stores its serialized information as a string of data in flat file database using the DBA extension.Previously stored objects from the...
10 KB  
Libraries  -  CGI::Cache 1.4200
CGI::Cache is a Perl extension to help cache output of time-intensive CGI scripts. WARNING The interface as of version 1.01 has changed considerably and is NOT compatible with earlier versions. A smaller interface change also occurred in...
44.03 KB  
Libraries  -  CPAN::Cache 0.02
CPAN::Cache is a Perl module abstract locally-cached logical subset of a CPAN mirror. There have been any number of scripts and modules written that contain as part of their functionality some form of locally stored partial mirror of the CPAN...
21.5 KB  
Libraries  -  Libcfu 0.03
Libcfu is a library of tools that I have found useful, particularly when developing multithreaded software. It includes a hash table, a linked list, self-extending strings, a config file parser, a simple timer, a thread queue, and command-line...
194.56 KB  
Libraries  -  SOAP::Data 0.69
SOAP::Data is a Perl class that provides the means by which to explicitly manipulate and control all aspects of the way in which Perl data gets expressed as SOAP data entities. The SOAP::Data class provides the means by which to explicitly...
235.52 KB  
Libraries  -  Netscape::Cache 0.45
Netscape::Cache is a Perl object class for accessing Netscape cache files. SYNOPSIS The object oriented interface: use Netscape::Cache; $cache = new Netscape::Cache; while (defined($url = $cache->next_url)) { print $url, "n"; } while...
16.38 KB  
Libraries  -  Xephyrus Data Structures Tag Library 1.5
Xephyrus Data Structures Tag Library provides an easy way to create and manipulate the contents of common Java data-structures such as maps and lists. Whats New in This Release: - The library was polished up. - Several improvements were made...
21.5 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB