Operate v0.1.0-beta.15 Operate.Cache.ConCache View Source

Cache module implementing an ETS based cache, using ConCache.

To enable this cache, ConCache needs to be started from a supervisor:

children = [
  {Operate, [
    cache: Operate.Cache.ConCache,
  ]},
  {ConCache, [
    name: :operate,
    ttl_check_interval: :timer.minutes(1),
    global_ttl: :timer.minutes(10),
    touch_on_read: true
  ]}
]
Supervisor.start_link(children, strategy: :one_for_one)

Link to this section Summary

Link to this section Functions

Link to this function

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

View Source

Callback implementation for Operate.Cache.fetch_ops/3.

Link to this function

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

View Source

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

Link to this function

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

View Source

Callback implementation for Operate.Cache.fetch_tx/3.

Link to this function

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

View Source

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

Link to this function

fetch_tx_by(query, options \\ [], arg)

View Source

Callback implementation for Operate.Cache.fetch_tx_by/3.

Link to this function

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

View Source

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