livery_client_cookie_store_ets (livery v0.4.3)

View Source

The default cookie jar store: a public ETS table.

livery_client:cookie_jar/0,1 uses it implicitly, so you rarely name it directly. The constructor creates one unnamed public table per jar and hands it back as the opaque store handle; every request process that runs the client reads and writes the same table. The table is owned by the process that built the jar, so build the jar under a process that outlives its requests.

Summary

Functions

delete(Tab, Key)

-spec delete(ets:tid(), livery_client_cookie_store:key()) -> ok.

get(Tab)

init(Opts)

-spec init(map()) -> ets:tid().

put(Tab, Key, Cookie)