Latch.Store.ETS (latch v0.5.0)

Copy Markdown

Pre-built ETS Store for Latch. Does not maintain access tokens or in-progress requests across restarts. For a more reliable approach, create your own implementation of the Latch.Store behavior.

TTL for requests is set on the Latch level, passed by the implementor as request_ttl, defaulting to 600s.

Summary

Functions

delete_session(ref, did)

fetch_session(ref, did)

put_request(ref, state, request, ttl)

put_session(ref, did, session)

take_request(ref, state)

update_session(ref, did, fun)