Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Protocol::Memcached 0.003

    Download button

    No screenshots available
    Downloads: 115  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tom Molesworth | More programs
    Perl Artistic License / FREE
    July 14th, 2011, 01:23 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Protocol::Memcached description

    Memcached binary protocol implementation

    Bare minimum protocol support for memcached. The Protocol::Memcached class is transport-agnostic and as such is not a working implementation - you need to subclass and provide your own ->write method.

    SYNOPSIS

     package Subclass::Of::Protocol::Memcached;
     use parent qw(Protocol::Memcached);

     sub write { $_[0]->{socket}->write($_[1]) }

     package main;
     my $mc = Subclass::Of::Protocol::Memcached->new;
     my ($k, $v) = ('hello' => 'world');
     $mc->set(
     $k => $v,
     on_complete => sub {
     $mc->get(
     'key',
     on_complete => sub { my $v = shift; print "Had $v\n" },
     on_error => sub { die "Failed because of @_\n" }
     );
     }
     );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    memcached implementation | Perl module | Perl | memcached | protocol

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM