WeChat.Storage.Adapter behaviour (wechat v0.2.0)

存储器适配器

Link to this section Summary

Link to this section Types

Specs

store_id() :: String.t()

Specs

store_key() :: atom() | String.t()

Specs

t() :: module()

存储器

Specs

value() :: map()

Link to this section Callbacks

Link to this callback

restore(store_id, store_key)

Specs

restore(store_id(), store_key()) :: {:ok, value()}
Link to this callback

store(store_id, store_key, value)

Specs

store(store_id(), store_key(), value()) :: :ok