Operate v0.1.0-beta.1 Operate.Cache.NoCache View Source

Cache module for implementing no caching.

This is the default cache module, and allows Operate to run without any caching, simply by forwarding and requests for tapes or ops to the configured adpater module(s) skipping any cache layers.

Link to this section Summary

Functions

Loads Ops from the cache by the given procedure referneces, or delegates the job to the specified adapter. Returns the result in an :ok / :error tuple pair.

As c:fetch_ops/3, but returns the result or raises an exception.

Loads a transaction from the cache by the given txid, or delegates to job to the specified adapter. Returns the result in an :ok / :error tuple pair.

As c:fetch_tx/3, but returns the transaction or raises an exception.

Link to this section Functions

Link to this function

fetch_ops(refs, options \\ [], arg)

View Source

Loads Ops from the cache by the given procedure referneces, or delegates the job to the specified adapter. Returns the result in an :ok / :error tuple pair.

Callback implementation for Operate.Cache.fetch_ops/3.

Link to this function

fetch_ops!(refs, options \\ [], arg)

View Source

As c:fetch_ops/3, but returns the result or raises an exception.

Callback implementation for Operate.Cache.fetch_ops!/3.

Link to this function

fetch_tx(txid, options \\ [], arg)

View Source

Loads a transaction from the cache by the given txid, or delegates to job to the specified adapter. Returns the result in an :ok / :error tuple pair.

Callback implementation for Operate.Cache.fetch_tx/3.

Link to this function

fetch_tx!(txid, options \\ [], arg)

View Source

As c:fetch_tx/3, but returns the transaction or raises an exception.

Callback implementation for Operate.Cache.fetch_tx!/3.