Cache::Memcached::Tags - Cache::Memcached based client library for memcached-tags: http://code.google.com/p/memcached-tags/
use Cache::Memcached::Tags; $memd = new Cache::Memcached::Tags { 'servers' => [ "10.0.0.15:11211", "10.0.0.15:11212", "/var/sock/memcached", "10.0.0.17:11211", [ "10.0.0.17:11211", 3 ] ], }; $memd->set("my_key", "Some value"); $memd->add_tags("my_key", "tag1", "tag2", "tag3"); $memd->set("my_key2", "Other value", undef, "tag1", "tag2"); $memd->delete_by_tags("tag1", "tag2");
This is the Perl API for memcached-tags version of memceched More information is available at:
http://memcached-tags.googlecode.com
This module is based on Cache::Memcached, so you can use it as you would use Cache::Memcached plus couple of new methods
All Cache::Memcached methods
add_tags
$memd->add_tags($key1, @tags); marks item with tags
delete_by_tags
$memd->delete_by_tags($tag1, $tag2, $tag3, ...); deletes items that were marked by these tags
set
$memd->set($key, $value[, $exptime[, @tags]]); same Cache::Memcached set method, except it accepts tags for the item to mark
This module is Copyright (c) 2009 Eugene Bragin. All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
See the memcached website: http://www.danga.com/memcached/ And memcached-tags branch: http://code.google.com/p/memcached-tags/
Eugene Bragin <eugene.bragin+memd@gmail.com>
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Cache::Memcached::Tags, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::Memcached::Tags
CPAN shell
perl -MCPAN -e shell install Cache::Memcached::Tags
For more information on module installation, please visit the detailed CPAN module installation guide.