DOKK / manpages / debian 12 / tirex / Tirex::Status.3pm.en
Tirex::Status(3pm) User Contributed Perl Documentation Tirex::Status(3pm)

Tirex::Status - Status of running master daemon in shared memory

my $status = Tirex::Status->new();

This package manages the status of the master daemon in shared memory.

If 'master' is true the shared memory is created (and destroyed afterwards). Only the master server should do this.

Destroy shared memory segment.

$status->update(key1 => val1, key2 => val2, ...)

Update shared memory with current status. Call with key-value pairs that should be added to status.

Write a string into shared memory.

Read a string from shared memory.

Returns the string read, or undef if the shared memory was not accessible.

2023-04-11 perl v5.36.0