Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "pcache"

Title:Persistent answer cache
Rating:Not rated. Create the first rating!
Latest version:0.1.0
SHA1 sum:2342368f15adf2e86b1a80f6b9ac6c83f4309894
Author:Jan Wielemaker <jan@swi-prolog.org>
Home page:https://github.com/JanWielemaker/pcache
Download URL:https://github.com/JanWielemaker/pcache/releases/*.zip
Requires:rocksdb
prolog>=7.5.14

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.1.02342368f15adf2e86b1a80f6b9ac6c83f430989418https://github.com/JanWielemaker/pcache/archive/V0.1.0.zip

Persistent answer caching

This repo defines a SWI-Prolog library cache_rocks, which uses a RocksDB interface to provide persistent caching of answers. The answers are associated with a deep hash of the involved predicates, which means that they are invalidated when one of the predicates that are reachable from the call tree starting with the predicate associated with the goal changes.

Status

Experimental.

Requirements

  • SWI-Prolog 7.5.14 or later
  • Install the rocksdb binding from the pack:
    ?- pack_install(rocksdb).

    Note that this requires rocksdb installed on your system.

Contents of pack "pcache"

Pack contains 6 files holding a total of 28.8K bytes.