The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Cache::Funcky::Storage::Memcached - Cache::Funcky Memcached Storage.

SYNOPSYS

  package MyCache;
  
  use strict;
  use Cache::Memcached;
  use base qw/Cache::Funcky/;
  
  __PACKAGE__->setup('Storage::Memcached' => { servers => [ '127.0.0.1:12345' ] });
  __PACKAGE__->register( 'foo', sub { time } );
  
  1;

run.pl #!/usr/bin/perl

  use strict;
  use MyCache;
  use Perl6::Say;
  
  say ( MyCache->foo() );
  sleep(3);
  say ( MyCache->foo() );
  
  MyCache->delete(qw/foo/);
  say ( MyCache->foo() );

DESCRIPTION

Memcached Storage for Cache::Funckey

METHOD

new

set

get

delete

SEE ALSO

Cache::Funckey Cache::Funckey::Storage

AUTHOR

Tomohiro Teranishi <tomohiro.teranishi@gmail.com>