Module
jinks/cache
src/jinks/cache.pookaA provider's cached answer has an expiry and a version, not a claim to be permanent truth. The caller supplies time so offline tests need no clock. Cache files never become published site files or watched source inputs.
API reference
name(key: String) -> Result(String, String)
INFERRED
fn(String) -> Result(String, String)get(root: String, key: String, now: Int) -> Result(Option(json.Json), String)
INFERRED
fn(String, String, Int) -> Result(Option($package/pooka_json/pooka/json.Json), String)put(root: String, key: String, now: Int, ttl: Int, value: json.Json) -> Result(
Nil,
String
)
INFERRED
fn(String, String, Int, Int, $package/pooka_json/pooka/json.Json) -> Result(Nil, String)clear(root: String) -> Result(Nil, String)
INFERRED
fn(String) -> Result(Nil, String)