Quiq::LockedCounter - Persistenter Zähler mit Lock
Quiq::Object
use Quiq::LockedCounter; $cnt = Quiq::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 = Quiq::LockedCounter->new($file);
Objekt
$n = $ctr->count;
Zählerstand (Integer)
$file = $ctr->file;
Dateipfad (String)
$ctr = $ctr->increment;
1.135
Frank Seitz, http://fseitz.de/
Copyright (C) 2019 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Quiq::Css, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quiq::Css
CPAN shell
perl -MCPAN -e shell install Quiq::Css
For more information on module installation, please visit the detailed CPAN module installation guide.