Lotus.Cache.Key (Lotus v1.0.0)

Copy Markdown View Source

Cache key construction for query results and schema introspection.

Keys are opaque binaries built from the statement, its bound values, the data source and any caller-supplied cache identity. Lotus.Cache.KeyBuilder is the extension point for hosts that need a different scheme.

Summary

Functions

result(body, bound, opts, scope \\ nil)

@spec result(term(), map() | list(), keyword(), term() | nil) :: binary()