Plug.PageCache v0.1.0 Plug.PageCache.Adapter.ETS

PageCache adapter for ETS storage.

Summary

Functions

Callback implementation for Plug.PageCache.Adapter.clean/1

Callback implementation for Plug.PageCache.Adapter.load/2

Starts the cache adapter

Functions

clean(state)

Callback implementation for Plug.PageCache.Adapter.clean/1.

load(state, path)

Callback implementation for Plug.PageCache.Adapter.load/2.

remove(state, path)

Callback implementation for Plug.PageCache.Adapter.remove/2.

save(state, path, page)

Callback implementation for Plug.PageCache.Adapter.save/3.

start_link(opts)

Specs

start_link(Keyword.t) :: GenServer.on_start

Starts the cache adapter.

It will be registered under the id generated from its name by Plug.PageCache.Config.cache_id/1.