View Source LiveCache.PerSession (live_cache v0.3.0)
Plug to scope cache operations to the current session.
Installing the plug into a pipeline ensures that cached values are only accessible within this session, as an extra layer of security.
defmodule MyAppWeb.Router do
use MyAppWeb, :router
pipeline :browser do
# [...]
plug LiveCache.PerSession
end