Rujira (rujira_ex v0.0.1)

Copy Markdown View Source

Domain library for Rujira.

Provides shared types, query APIs, and event parsing for the Rujira DeFi suite built on Cosmos/THORChain.

Modules

Configuration

config :rujira_ex,
  node: MyApp.Node,
  prices: Rujira.Prices.Default,
  cache_ttl: 15_000

Summary

Functions

Returns the global cache TTL in milliseconds.

Functions

cache_ttl()

@spec cache_ttl() :: non_neg_integer()

Returns the global cache TTL in milliseconds.

Used by all defmemo calls with expiration. Configurable via:

config :rujira_ex, cache_ttl: 15_000

Defaults to 15 seconds. Set to 0 to disable expiration.