:Storage::CHI::VERSION = '0.004';
use Mojo::Base qw/Mojolicious::Sessions::ThreeS::Storage/;
use JSON;
=head1 NAME
Mojolicious::Sessions::ThreeS::Storage::CHI - An adapter to store sessions in a CH
S->new({ storage => $storage , state => ... } );
Note that you WILL have to depend on CHI and on JSON in your application to use this storage.
This distribution does not add these to the runtime dep
43200;
has 'chi';
has 'json' => sub{
my $json = JSON->new();
$json->ascii( 1 );
# Encode stuff in ascii so there is no risk
# of bad decoding.
return $json;
};
=head1 METHODS
=h