---
name: "Zim::Store::Cached"
section: "3pm"
platform: "linux"
package: "zim"
version: "0.25-1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Zim::Store::Cached"
---

# Zim::Store::Cached(3pm)

A base class for cached storage

## 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
