Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Add support serialize for Cache::KyotoTycoon.
Perl
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Cache/KyotoTycoon
t
xt
.gitignore
.shipit
Cache-KyotoTycoon-Serialize-v0.01.tar.gz
Changes
MANIFEST.SKIP
Makefile.PL
README
README.pod

README.pod

NAME

Cache::KyotoTycoon::Serialize - serialize/deserialize support for Cache::KyotoTycoon

SYNOPSIS

  use Cache::KyotoTycoon;
  use Cache::KyotoTycoon::Serialize qw(-compat);

  my $dbi = Cache::KyotoTycoon->new(
    addr => '127.0.0.1'
  );

  $dbi->add('key', +{
    # datas ...
  }); # You can pass any reference data to KyotoTycoon!

or

  use Cache::KyotoTycoon::Serialize;

  my $dbi = Cache::KyotoTycoon::Serialize->new(
    addr => '127.0.0.1'
  );

  $dbi->add('key', +{
    # datas ...
  }); # You can pass reference data to KyotoTycoon!

You can use the serialize/deserialize subroutine you like if you can pass options.

  use Data::MessagePack;
  use Cache::KyotoTycoon::Serialize(
    -serializer   => sub{ Data::MessagePack->pack(shift); }
    -deserializer => sub{ Data::MessagePack->unpack(shift); }
  );

  my $dbi = Cache::KyotoTycoon::Serialize->new(
    addr => '127.0.0.1'
  );

  $dbi->add('key', +{
    # datas ...
  }); # You can pass reference data to KyotoTycoon!

DESCRIPTION

Cache::KyotoTycoon::Serialize is serialize/deserialize support for Cache::KyotoTycoon. If some module need Cache::* object and the module caching reference data, I propose you should use this module.

AUTHOR

Kenta Sato <kenta.sato.1990@gmail.com>

SEE ALSO

Cache::KyotoTycoon Storable

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.