The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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)