Prty::LockedCounter - Persistenter Zähler mit Lock
Prty::Object
use Prty::LockedCounter; $cnt = Prty::LockedCounter->new($file)->increment; ... $n = $cnt->count;
Die Klasse realisiert einen Zähler mit Exklusiv-Lock. Der Zählerstand wird in einer Datei gespeichert. Die Datei wird gelockt. Der Lock wird bis zur Destrukturierung des Objekts gehalten.
$ctr = Prty::LockedCounter->new($file);
Objekt
$n = $ctr->count;
Zählerstand (Integer)
$file = $ctr->file;
Dateipfad (String)
$ctr = $ctr->increment;
1.07
Frank Seitz, http://fseitz.de/
Copyright (C) 2016 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Prty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prty
CPAN shell
perl -MCPAN -e shell install Prty
For more information on module installation, please visit the detailed CPAN module installation guide.