Tie::DB_Lock 0.07
Sponsored Links
Tie::DB_Lock 0.07 Ranking & Summary
File size:
0.007 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
795
Date added:
2007-08-22
Publisher:
Ken Williams
Tie::DB_Lock 0.07 description
Tie::DB_Lock Perl module can tie hashes to databases using shared and exclusive locks.
SYNOPSIS
use Tie::DB_Lock;
use DB_File;
tie(%hash, Tie::DB_Lock, $filename, rw); # Open for writing
$hash{key} = value;
untie %hash;
tie(%hash2, Tie::DB_Lock, $filename); # Default is read-only
print("Value is $hash2{key}n");
untie %hash;
This is a front-end for the DB_File package.
If you tie a hash in read-only mode, this module puts a shared lock on the database file, copies it to a temporary file, unlocks the original database, and then ties the tempfile using DB_File.
If you tie the hash in read-write mode, we put an exclusive lock on the database and tie it directly using DB_File.
The reason I copy the whole file every time I read from it is that this allows the program to read from the file for as long as it wants to, without interfering with other peoples writes. This works well if you typically have long, sustained reads, and short, bursty writes. See the README file for help in deciding whether you want to use this package.
You dont always need to call untie() explicitly - it will be called for you when %hash goes out of scope. And if all goes as planned, youll never know the temporary file ever existed, since it will evaporate when %hash goes away.
SYNOPSIS
use Tie::DB_Lock;
use DB_File;
tie(%hash, Tie::DB_Lock, $filename, rw); # Open for writing
$hash{key} = value;
untie %hash;
tie(%hash2, Tie::DB_Lock, $filename); # Default is read-only
print("Value is $hash2{key}n");
untie %hash;
This is a front-end for the DB_File package.
If you tie a hash in read-only mode, this module puts a shared lock on the database file, copies it to a temporary file, unlocks the original database, and then ties the tempfile using DB_File.
If you tie the hash in read-write mode, we put an exclusive lock on the database and tie it directly using DB_File.
The reason I copy the whole file every time I read from it is that this allows the program to read from the file for as long as it wants to, without interfering with other peoples writes. This works well if you typically have long, sustained reads, and short, bursty writes. See the README file for help in deciding whether you want to use this package.
You dont always need to call untie() explicitly - it will be called for you when %hash goes out of scope. And if all goes as planned, youll never know the temporary file ever existed, since it will evaporate when %hash goes away.
Tie::DB_Lock 0.07 Screenshot
Tie::DB_Lock 0.07 Keywords
DB
Lock Perl
Lock 0.07
shared and exclusive locks
Perl module
exclusive locks
databases using
lock
file
hash
tie
using
shared
Tie::DB_Lock
TieDBLock
Tie::DB_Lock 0.07
Bookmark Tie::DB_Lock 0.07
Tie::DB_Lock 0.07 Copyright
WareSeeker periodically updates pricing and software information of Tie::DB_Lock 0.07 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 Tie::DB_Lock 0.07 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
shared exclusive locks
exclusive locks in oracle
exclusive locks sql
exclusive locks oracle
file extension pdf
lock haven express
row exclusive locks
fileneu0027s
foot locker
perl modules
file lock perl
lock bumping
file extension dll
exclusive locks sql server
keep exclusive locks
lockheed martin
filezilla
file extension dat
Related Software
Tie::Eudora is a Perl module that can encode/decode emails, read/write emails in Eudora mailbox files. Free Download
File::Backup is a Perl module for easy file backup & rotation automation. Free Download
GDBM_File package allows Perl5 access to the gdbm library. Free Download
Tie::Form is a Perl module to access a machine readable database file that minics a hardcopy form. Free Download
Text::Replace is a Perl module to replace variables from a hash. Free Download
File::Flock is a Perl module for file locking with flock. Free Download
Tie::Trace can easy print debugging with tie. Free Download
PicoTK is a C GUI toolkit that requires only a minimum of memory resources. Free Download
Latest Software
Popular Software
Favourite Software