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

Plack::Session::Store::RedisFast::MojoJSON - Mojo::JSON adapter for Redis session store.

DESCRIPTION

Mojo::JSON-based implementation of "inflate" in Plack::Session::Store::RedisFast and "deflate" in Plack::Session::Store::RedisFast.

SYNOPSIS

    use Plack::Session::Store::RedisFast::MojoJSON;

    my $encoder = Plack::Session::Store::RedisFast::MojoJSON->new;

    my $bytes = $encoder->encode( $hashref );

    my $hashref2 = $encoder->decode( $bytes );

DESCRIPTION

Used by default when JSON::XS is not available.

METHODS

new

    Plack::Session::Store::RedisFast::MojoJSON->new;