The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Keys::E::Value::InfDef - inflate/deflate values

SYNOPSIS

    use Date::Keys;
        my $dk = Data::Keys->new(
                'base_dir'    => '/folder/full/of/json/files',
                'extend_with' => ['Store::Dir', 'Value::InfDef'],
                'inflate'     => sub { JSON::Util->decode($_[0]) },
                'deflate'     => sub { JSON::Util->encode($_[0]) },
        );

        my %data = %{$dk->get('abcd.json')};
        $dk->set('abcd.json', \%data);

DESCRIPTION

Uses callback to automatically inflate and deflate.

PROPERTIES

inflate

Callback executed with get value.

deflate

Callback executed with set value.

AUTHOR

Jozef Kutej