ugin::Cache::VERSION = '0.0.3';
}
use Moose;
use JSON;
use Gideon::Registry;
#ABSTRACT: Cache Plugin
extends 'Gideon::Plugin';
my $serializer = JSON->new->utf8->canonical;
sub find_one {
my (
N
version 0.0.3
=head1 SYNOPSIS
# Store a document as JSON in the database
package Document;
use Gideon driver => 'DBI';
use JSON;
...
has content => (
is => 'rw',
traits =>
[ 'Gideon::DBI::Column', 'Gideon::Inflate' ],
inflator => sub { decode_json $_[0] },
deflator => sub { encode_json $_[0] }
);
=head1 DESCRIPTION
It allows you to configurate an inflate and