Zim::Store::Cached3pm
A base class for cached storage
Overview
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)"