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.639.547 Times

Tie::FileLRUCache 1.05

  Date Added: April 22, 2010  |  Visits: 699

Tie::FileLRUCache

Report Broken Link
Printer Friendly Version


Product Homepage
Download (70 downloads)

Tie::FileLRUCache is a lightweight but robust filesystem based persistent LRU cache. SYNOPSIS OBJECT INTERFACE use Tie::FileLRUCache; my $cache = Tie::FileLRUCache->new({ -cache_dir => $directory, -keep_last => 100 }); # Inserting value into LRU cache using -key $cache->update({ -key => $key, -value => $value }); # Inserting value into LRU cache using -cache_key my $cache_key = $cache->make_cache_key({ -key => $key }); $cache->update({ -cache_key => $cache_key, -value => $value }); # Checking LRU cache my ($in_cache,$value) = $cache->check({ -key => $key }); if ($in_cache) { return $value; } # Not in cache - do something else # Checking LRU cache with speed up hack for objects, hashes, arrays etc used as keys my $cache_key = $cache->make_cache_key({ -key => $something }); my ($in_cache,$value) = $cache->check({ -cache_key => $cache_key }); if ($in_cache) { return $value; } # Not in cache - do something else # Deleting a key and its value from the cache $cache->delete({ -key => $key }); # Clearing LRU cache $cache->clear; TIED INTERFACE use Tie::FileLRUCache; [$X =] tie %hash, Tie::FileLRUCache, $cache_dir, $keep_last_n; # Adding a key/value to the cache $hash{$key} = $value; # Checking the cache if (not exists $hash{$key}) {; # No match . . . } else { my $value = $hash{$key}; . . . } # Removing a value from the cache; delete $hash{$key}; # Clearing the cache %hash = (); Note: Iteration over the cache (each, keys, values) is _NOT_ supported.. A freeware integrated WWW and FTP log reporting tool that include support for standard and combined access_log formats and generation of graphical reports. Written in perl.

Requirements: No special requirements
Platforms: Linux
Keyword: Based Cache Filelrucache Hash Key Libraries Lru Cache Programming Robust Tiefilelrucache Value
Users rating: 0/10

License: Freeware Size: 17.41 KB
TIE::FILELRUCACHE RELATED
Miscellaneous  -  Length-limited O(1) LRU Cache implementation 1.2
Length-limited O(1) LRU Cache implementation script is an implementation of a length-limited O(1ion scripue.
 
Libraries  -  Cache::BerkeleyDB 0.03
Cache::BerkeleyDB Perl module implements the Cache::Cache interface. This module implements the Cache interface provided by the Cache::Cache family of modules written by DeWitt Clinton. It provides a practically drop-in replacement for...
12.29 KB  
Libraries  -  Cache::Memcached::XS 0.01
Cache::Memcached::XS is a client library for memcached (memory cache daemon) using libmemcache. SYNOPSIS use Cache::Memcached::XS; $memd = new Cache::Memcached { servers => [ "10.0.0.15:11211", "10.0.0.15:11212", "10.0.0.17:11211", [...
34.82 KB  
Libraries  -  Cache::Bounded 1.03
Cache::Bounded is a size-aware in-memory cache optimized for speed. SYNOPSIS Cache::Bounded is designed for caching items into memory in a very fast but rudimentarily size-aware fashion. Most intelligent caches take either a size-aware or...
4.1 KB  
Libraries  -  Cache::Mmap 0.09
Cache::Mmap Perl module helps you to share data cache using memory mapped files. SYNOPSIS use Cache::Mmap; $cache=Cache::Mmap->new($filename,%options); $val1=$cache->read($key1); $cache->write($key2,$val2); $cache->delete($key3); This...
21.5 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  
Programming  -  PyLRU 1.0.1
A least recently used (LRU) cache for Python. Pylru implements a true LRU cache along with several support classes. The cache is efficient and written in pure Python. It works with Python 2.6+ including the new 3.x series. Basic...
10.24 KB  
Modules  -  Hyper Cache 2.0.1
It is compatible with the WP-PDA plugin that serves an optimized version of the blog to the users browsing from mobile devices.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in...
 
Miscellaneous  -  LRU cache decorator 1.1
This one-line decorator call adds caching to functions with hashable arguments and no keyword arguments.When the maximum size is reached, the least recently used entry is discarded -- appropriate for long-running processes which cannot allow...
 
Development Tools  -  MySQL data into array 1.0
MySQL cache class can be used to cache MySQL query results in session variables. MySQL cache script used in PHP, it is a professional PHP cache script.It can perform a given SELECT SQL query and store the result in a session variable.Next time the...
10 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  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
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