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

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

Serving Software Downloads in 956 Categories, Downloaded 50.473.211 Times

Tie::Array::QueueExpire for Linux 1.01

Company: Dulaunoy Fabrice
Date Added: September 05, 2013  |  Visits: 392

Tie::Array::QueueExpire for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (36 downloads)



Tie::Array::QueueExpire is a Perl module that requires Time::HiRes, TokyoCabinet (database and perl module.) The insertion is ms unique ( 0.001 seconds ).<br /> <br />The normal ARRAY function present are<br /> <br /> push<br /> pop<br /> shift<br /> exits<br /> scalar<br /> clear<br /> unshift (but put data 1 second before the first entry)<br /><br />The following function is not completely iplemented.<br /> <br /> splice<br /> <br />The following function are not implemented.<br /> <br /> extend<br /> store<br /> STORESIZE<br /><br />The following function are specific of this module.<br /> <br /> LAST<br /> FIRST<br /> EXPIRE<br /> OPTIMIZE<br /> PUSH<br /> FETCH<br /><br />SYNOPSIS<br /><br /> use Tie::Array::QueueExpire;<br /> my $t = tie( my @myarray, "Tie::Array::QueueExpire", '/tmp/db_test.bdb' );<br /> push @myarray, int rand 1000;<br /> <br /> # normal ARRAY function<br /> my $data = shift @myarray;<br /> my $data = pop @myarray;<br /> print "this elem exists<br />" if (exists( $myarray[6]));<br /> print "size = ". scalar( @myarray )."<br />";<br /> <br /> # using the PUSH with an extra parameter to put the new element in futur<br /> # also return the key of the inserted value<br /> for ( 1 .. 10 )<br /> {<br /> say "t=".time.' '. int (($t->PUSH( $_ . ' ' . time, 10 ))/1000);<br /> sleep 1;<br /> }<br /> sleep 10;<br /> # Get the expired elements ( 7 seconds before now )<br /> my $ex = $t->EXPIRE( 7 );<br /> <br /> # Get the expired elements<br /> my @EXP = @{$t->EXPIRE($exp)};<br /> # Get and delete the expired elements ( 20 seconds before now )<br /> $ex = $t->EXPIRE(20,1);<br /> my @EXP = @{$t->EXPIRE($exp,1)};<br /> <br /> # fetch element<br /> # in scalar context return the value<br /> # in array context return in first element the key and in second, the value<br /> my $a =$t->FETCH(6);<br /> my @b = $t->FETCH(6);<br /> # the normal array fetch is always in scalar mode<br /> my @c=$myarray[6];<br /> say Dumper( $a );<br /> say Dumper( @b );<br /> say Dumper( @c );

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Array Array Queueexpire Dumper Element Elements Expired Fetch Function Linux Module Myarray Normal Print Queueexpire Queueexpire Linux Return Scalar Seconds Sleep Tie Tie Array Tie Array Queueexpire Tiearrayqueueexpire
Users rating: 0/10

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


TIE::ARRAY::QUEUEEXPIRE FOR LINUX RELATED
Libraries  -  Getfem 3.0
The Getfem++ project focuses on the development of a generic and efficient C++ library for finite element methods elementary computations. The goal is to provide a library allowing the computation of any elementary matrix (even for mixed finite...
4.3 MB  
Programming  -  Tie::Queuefor Linux 0.19
Tie an ARRAY over a TokyTyrant DB and allow to push, pop shift data. Tie::Queue requires TokyoTyrant (database and Perl module.) If the serialisation is required, the module Data::Serilizer is also required The normal ARRAY...
10.24 KB  
Libraries  -  Class::Struct::FIELDS 1.1
Class::Struct::FIELDS module combine Class::Struct, base and fields. SYNOPSIS (This page documents Class::Struct::FIELDS v.1.1.) use Class::Struct::FIELDS; # declare struct, based on fields, explicit class name: struct (CLASS_NAME => {...
18.43 KB  
Modules  -  Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead...
10 KB  
Programming  -  Getfem++ 4.0
The Getfem++ project focuses on the development of a generic and efficient C++ library for finite element methods elementary computations. The goal is to provide a library allowing the computation of any elementary matrix (even for mixed finite...
6.7 MB  
Libraries  -  OpenOffice::OODoc::XPath 2.027
OpenOffice::OODoc::XPath is a Low-level XML navigation in the documents. This module is a low-level class which uses OODoc::File (without inheriting anything from it) along with the classes defined in the XML::Twig module. Its a common basis for...
215.04 KB  
Libraries  -  XML::EasySQL::XMLobj 1.2
XML::EasySQL::XMLobj is a Fork of Robert Hansons killer XML::EasyOBJ module, which offers Easy XML object navigation. SYNOPSIS XML::EasySQL::XMLobj is a fork of Robert Hansons XML::EasyOBJ module. The goal of the fork was to simplify...
11.26 KB  
Libraries  -  XML::EasyOBJ 1.12
XML::EasyOBJ is an easy XML object navigation. SYNOPSIS # open exisiting file my $doc = new XML::EasyOBJ(my_xml_document.xml); my $doc = new XML::EasyOBJ(-type => file, -param => my_xml_document.xml); # create object from XML string my...
25.6 KB  
Programming  -  Net::Yadis 1.0
Net::Yadis is a Perl module that performs the Yadis service discovery protocol, and parses XRDS xml documents. Methods discover This constructor performs the discovery protocol on a url and returns a yadis object...
10.24 KB  
Libraries  -  Chart::Graph::Gnuplot 3.2
Chart::Graph::Gnuplot is a function in module Chart::Graph that lets you generate graphs on the fly in perl. SYNOPSIS use Chart::Graph::Gnuplot qw(&gnuplot); gnuplot(%global_options, [%data_set_options, @matrix], [%data_set_options,...
8.19 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB