The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Quiq::LockedContent - Persistenter Dateininhalt mit Lock

BASE CLASS

Quiq::Object

SYNOPSIS

use Quiq::LockedContent;

$obj = Quiq::LockedContent->new($file);
$data = $obj->read;
...
$obj->write($data);

DESCRIPTION

Die Klasse realisiert einen persisteten Inhalt mit Exklusiv-Lock. Der Inhalt kann gelesen und geschrieben werden. Die Datei wird gelockt. Der Lock wird bis zur Destrukturierung des Objekts gehalten.

METHODS

Konstruktor/Destruktor

new() - Instantiiere Objekt

Synopsis

$obj = Quiq::LockedContent->new($file);

Returns

Objekt

close() - Destrukturiere Objekt

Synopsis

$obj->close;

Alias

destroy()

Operationen

file() - Dateipfad

Synopsis

$file = $ctr->file;

Returns

Dateipfad (String)

read() - Lies Daten

Synopsis

$data = $obj->read;

Returns

String

write() - Schreibe Daten

Synopsis

$obj->write($data);

VERSION

1.220

AUTHOR

Frank Seitz, http://fseitz.de/

COPYRIGHT

Copyright (C) 2024 Frank Seitz

LICENSE

This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.