Storable#

NAME#

Kernel::System::Storable - Storable wrapper functions

DESCRIPTION#

Functions for Storable serialization / deserialization.

new()#

create a Storable object. Do not use it directly, instead use:

my $StorableObject = $Kernel::OM->Get('Kernel::System::Storable');

Serialize()#

Dump a Perl data structure to an storable string.

my $StoableString = $StorableObject->Serialize(
    Data => $Data,          # must be a reference,
    Sort => 1,              # optional 1 or 0, default 0
);

Deserialize()#

Load a serialized storable string to a Perl data structure.

my $PerlStructureScalar = $StorableObject->Deserialize(
    Data => $StorableString,
);

Clone()#

Creates a deep copy a Perl data structure.

my $StorableData = $StorableObject->Clone(
    Data => $Data,          # must be a reference
);