Group
Extension

Matches 2

Memcached-Client ( M/MD/MDORMAN/Memcached-Client-2.01.tar.gz, MDORMAN, 2011; MetaCPAN )
Memcached-Client/lib/Memcached/Client/Serializer/JSON.pm ( view source; MetaCPAN )
kage Memcached::Client::Serializer::JSON;
BEGIN {
  $Memcached::Client::Serializer::JSON::VERSION = '2.01';
}
#ABSTRACT: Implements Memcached Serializing using JSON

use strict;
use warnings;
use Memc
ached::Client::Log qw{DEBUG LOG};
use JSON qw{decode_json encode_json};
use base qw{Memcached::Client::Serializer};

use constant F_JSON => 4;

sub deserialize {
    my ($self, $data, $flags) = @_;

 
ss defined $data;

    $flags ||= 0;

    if ($flags & F_JSON) {
        $self->log ("Deserializing data") if DEBUG;
        $data = decode_json $data;
    }

    return $data;
}

sub serialize {
    
Memcached-Client ( M/MD/MDORMAN/Memcached-Client-2.01.tar.gz, MDORMAN, 2011; MetaCPAN )
Memcached-Client/lib/Memcached/Client.pm ( view source; MetaCPAN )
itional Cache::Memcached hashing, both text and binary protocols,
serialization using Storable or JSON, and compression using gzip.

=head1 METHODS

=head2 new

C<new> takes a hash or a hashref contai

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.