Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tm::resourceable::memcached(3pm) [debian man page]

TM::ResourceAble::MemCached(3pm)			User Contributed Perl Documentation			  TM::ResourceAble::MemCached(3pm)

NAME
TM::ResourceAble::MemCached - Topic Maps, Memcached server backend SYNOPSIS
use TM::ResourceAble::MemCached; use Fcntl; # create/reset new map my $tm = new TM::ResourceAble::MemCached ( baseuri => 'http://whereever/', servers => [ localhost:11211 ], mode => O_TRUNC | O_CREAT, ); # use TM interface # open existing map my $tm = new TM::ResourceAble::MemCached ( baseuri => 'http://whereever/', servers => [ localhost:11211 ], ); DESCRIPTION
This package implements TM using a memcached server farm as backend. You should be able (without much testing, mind you, so it is EXPERIMENTAL) to perform all operations according to the TM interface. NOTE: The implementation is using the TIE technique (perltie via Tie::StdHash), so maybe there are problems lurking. Of course, a set of memcacheds can store any number of maps. To keep them separate, the baseuri is used, so make sure every map gets its own baseuri. INTERFACE
Constructor The constructor expects a hash with the following keys: servers (default: none) The value must be a reference to an array of strings, each of the form host:port. If there is no such list, then the constructor will fail. mode (default: O_CREAT) The value must be a value from Fcntl to control o whether the map should be created ("O_CREAT") when it does not exist, and/or o whether the map should be cleared ("O_TRUNC") when it existed before. All other options are passed to the constructor chain of traits (TM::ResourceAble) and superclasses (TM). SEE ALSO
TM, TM::ResourceAble AUTHOR INFORMATION
Copyright 2010, Robert Barta <drrho@cpan.org>, All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. http://www.perl.com/perl/misc/Artistic.html perl v5.10.1 2010-08-04 TM::ResourceAble::MemCached(3pm)

Check Out this Related Man Page

TM::Index::Reified(3pm) 				User Contributed Perl Documentation				   TM::Index::Reified(3pm)

NAME
TM::Index::Reified - Topic Maps, Indexing support (reification axis) SYNOPSIS
# somehow get a map (any subclass of TM will do) my $tm = ... # one option: create an eager index (immediate population) use TM::Index::Reified; my $idx = new TM::Index::Reified ($tm, closed => 1); # for most operations which involve is_reified to be called # should be much faster DESCRIPTION
This index can be attached to a map if the method "is_reified" is about to be called very often. Most likely you will want to have the index to be closed, i.e. populated. The package inherits most of its functionality from TM::Index. NOTE: As for all indices, modifications of the underlying map are not reflected automatically. INTERFACE
Constructor The constructor/destructor is inherited from TM::Index. Methods attach, detach This index attaches in a special way to the map. populate Invoking this, you will fill this index with authoritative information. SEE ALSO
TM, TM::Index COPYRIGHT AND LICENSE
Copyright 2010 by Robert Barta, <drrho@cpan.org> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-07-07 TM::Index::Reified(3pm)
Man Page