# Default serializer class, so that we don't have to depend on Data::Serializer.
# Recommend Data::Serializer for other serializers, rather than reinventing the wheel.
#
package CHI::Serializer::Storable;
$CHI::Serializer::Storable::VERSION = '0.61';
use Moo;
use Storable;
use strict;
use warnings;

sub serialize {
    return Storable::nfreeze( $_[1] );
}

sub deserialize {
    return Storable::thaw( $_[1] );
}

sub serializer {
    return 'Storable';
}

1;
