WeChat.Storage.Cache (wechat v0.2.0)
缓存存储器
Link to this section Summary
Link to this section Types
Link to this type
cache_id()
Specs
cache_id() :: WeChat.appid()
Link to this type
cache_key()
Specs
cache_key() :: {cache_id(), cache_sub_key()}
Link to this type
cache_sub_key()
Specs
cache_sub_key() :: atom()
Link to this type
cache_value()
Specs
Link to this section Functions
Link to this function
del_cache(key)
Specs
del_cache(cache_key()) :: true
Link to this function
del_cache(id, sub_key)
Specs
del_cache(cache_id(), cache_sub_key()) :: true
Link to this function
get_cache(key)
Specs
get_cache(cache_key()) :: nil | cache_value()
Link to this function
get_cache(id, sub_key)
Specs
get_cache(cache_id(), cache_sub_key()) :: nil | cache_value()
Link to this function
get_hub_oauth2_url(client)
Specs
get_hub_oauth2_url(WeChat.client()) :: nil | url()
Link to this function
get_oauth2_app_url(client, app)
Specs
get_oauth2_app_url(WeChat.client(), app()) :: nil | url()
Link to this function
init_table()
Link to this function
put_cache(key, value)
Specs
put_cache(cache_key(), cache_value()) :: true
Link to this function
put_cache(id, sub_key, value)
Specs
put_cache(cache_id(), cache_sub_key(), cache_value()) :: true
Link to this function
search_client(appid)
Specs
search_client(WeChat.appid()) :: nil | WeChat.client()
Link to this function
search_client_by_name(code_name)
Specs
search_client_by_name(WeChat.code_name()) :: nil | WeChat.client()
Link to this function
set_client(client)
Specs
set_client(WeChat.client()) :: true
Link to this function
set_hub_oauth2_url(client, url)
Specs
set_hub_oauth2_url(WeChat.client(), url()) :: true
Link to this function
set_oauth2_app_url(client, app, url)
Specs
set_oauth2_app_url(WeChat.client(), app(), url()) :: true