Zim::Store::Cached.3pm

Langue: en

Version: 2009-03-16 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Zim::Store::Cached - A base class for cached storage

DESCRIPTION

This module implements a base clase for stores which caches namespace listings, page linking structure and page meta data.

TODO: when scaling issues arise with the current implementation, the cache should be ported to DBI, using a database to store the cache. SQLite seems a good candidate as default DBD for this. The current implementation would then move to a subclass that serves as fallback when DBI is not available.

METHODS

"new(PARENT, NAMESPACE, DIR)"
Simple constructor. DIR is the root directory of the store. NAMESPACE is the namespace that maps to that directory.
"list_pages(NAMESPACE)"
"list_backlinks(PAGE)"
Returns a list with names of pages that link to this page.
"resolve_case(\@LINK, \@PAGE)"

BUGS

Please mail the author if you find any bugs.

AUTHOR

Jaap Karssenberg || Pardus [Larus] <pardus@cpan.org>

Copyright (c) 2005 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Zim, Zim::Page