NAME

Cache::Ehcache - client library for Ehcache Server

SYNOPSIS

use Cache::Ehcache;

my $cache = Cache::Ehcache->new({
  'server'             => 'http://localhost:8080/ehcache/rest/',
  'namespace'          => 'mynamespace',
  'default_expires_in' => 600, # option
});

# set cache element
$cache->set('key_1', 'value_1');
$cache->set('key_2', 'value_2', 3600);   # specify expires_in

# get cache element
my $value = $cache->get('key_1');

# delete cache element
$cache->delete('key_2');

# remove all elements of this cache
$cache->clear();

DESCRIPTION

Cache::Ehcache is

AUTHOR

YAMAMOTO Ryuzo (dragon3) <ryuzo.yamamoto@gmail.com>, <yamamoto@nulab.co.jp>

LICENSE

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

SEE ALSO

Ehcache Site http://ehcache.sourceforge.net/index.html http://ehcache.sourceforge.net/documentation/cache_server.html