1 library(paxos): A Replicated Data Store
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • Paxos -- a SWI-Prolog replicating key-value store
        • library(paxos): A Replicated Data Store
          • paxos_initialize/1
          • paxos_property/1
          • paxos_set/1
          • paxos_set/2
          • paxos_set/3
          • paxos_quorum_ask/4
          • paxos_get/1
          • paxos_get/2
          • paxos_get/3
          • paxos_replicate_key/3
          • paxos_on_change/2
          • paxos_on_change/3
          • paxos_ledger_hook/5
Availability::- use_module(library(paxos)).(can be autoloaded)
Source[semidet]paxos_get(+Key, +Value)
[semidet]paxos_get(+Key, +Value, +Options)
unifies Term with the entry retrieved from the Paxon's ledger. If no such entry exists in the member's local cache, then the quorum is asked to provide a value, which is verified for consistency. An implied paxos_set/1 follows. This predicate succeeds if a term with the same functor and arity exists in the Paxon's ledger, and fails otherwise.

Options processed:

retry(Retries)
is a non-negative integer specifying the number of retries that will be performed before a set is abandoned. Defaults to the setting max_gets (5).
timeout(+Seconds)
Max time to wait for the forum to reply. Defaults to the setting response_timeout (0.020, 20ms).
Term is a compound. Any unbound variables are unified with those provided in the ledger entry.