Name : perl-MLDBM-Sync
| |
Version : 0.30
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.421
| Date : 2024-10-10 23:03:26
|
Group : Development/Libraries/Perl
| Source RPM : perl-MLDBM-Sync-0.30-1.421.src.rpm
|
Size : 0.07 MB
| |
Packager : (none)
| |
Summary : Safe concurrent access to MLDBM databases
|
Description :
This module wraps around the MLDBM interface, by handling concurrent access to MLDBM databases with file locking, and flushes i/o explicity per lock/unlock. The new [Read]Lock()/UnLock() API can be used to serialize requests logically and improve performance for bundled reads & writes.
my $sync_dbm_obj = tie %cache, \'MLDBM::Sync\', \'/tmp/syncdbm\', O_CREAT|O_RDWR, 0640;
$sync_dbm_obj->Lock; ... all accesses to DBM LOCK_EX protected, and go to same tied file handles $cache{\'KEY\'} = \'VALUE\'; $sync_dbm_obj->UnLock;
$sync_dbm_obj->ReadLock; ... all read accesses to DBM LOCK_SH protected, and go to same tied files ... WARNING, cannot write to DBM in ReadLock() section, will die() ... WARNING, my $v = $cache{\'KEY\'}{\'SUBKEY\'} will trigger a write so not safe ... to use in ReadLock() section my $value = $cache{\'KEY\'}; $sync_dbm_obj->UnLock;
$cache{\'KEY\'} = \'VALUE\'; my $value = $cache{\'KEY\'};
MLDBM continues to serve as the underlying OO layer that serializes complex data structures to be stored in the databases. See the MLDBM BUGS section for important limitations.
MLDBM::Sync also provides built in RAM caching with Tie::Cache md5 key checksum functionality.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-M/openSUSE_Tumbleweed/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(MLDBM::Sync)
perl(MLDBM::Sync::SDBM_File)
perl-MLDBM-Sync
Requires :