LLMProxy.Cache.Runtime (llm_proxy v0.1.0)

Copy Markdown View Source

Runtime dispatcher for optional cache adapters, cache-key generation, and cache writes.

Summary

Functions

enabled?(request, context)

get(key, context)

@spec get(String.t(), LLMProxy.Cache.context()) ::
  {:hit, LLMProxy.Response.t()} | :miss

key(request, attempts)

policy(request, context)

put(key, request, response, context)