Robert Kiesling > onsearch > OnSearch::Cache

Download:
onsearch-0.99.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

OnSearch::Cache - Cacheing library for OnSearch.

DESCRIPTION ^

OnSearch::Cache provides the library routines that store and retrieve search results in OnSearch's cache. The library routines do some ordering of retrievals based on closeness of the match, and perform checks to ensure consistency of the cache with the site's documents.

EXPORTS ^

add_to_cache (session_id, entries);

Add_to_cache adds a matching document and the term or terms it matches to the cache.

posting_to_cache (postings, searchterms, matchtype, matchcase);

Posting_to_cache formats a cache entry from an index posting.

cache_retrieve (session_id, searchterm, term_ref, matchtype, matchcase);

Cache_retrieve returns cache entries that match the search term and other search criteria.

caching_enabled ();

Returns 1 if caching is enabled, or undef otherwise.

VERSION AND CREDITS ^

Written by Robert Kiesling <rkies@cpan.org> and licensed under the same terms as Perl. Refer to the file, "Artistic," for information.

SEE ALSO ^

OnSearch(3)