WeChat.Storage.Adapter behaviour (wechat v0.7.1) View Source

存储器适配器

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)

View Source

Specs

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

store(store_id, store_key, value)

View Source

Specs

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