crux_cache v0.2.0 Crux.Cache.None View Source
Functions both as Crux.Cache and Crux.Cache.Provider
As Crux.Cache.Provider: returning Crux.Cache.None for all caches.
As Crux.Cache:
cacheandupdatewill always return the atomtified data.deleteis a noop and returns:okfetchis a noop and returns:errorfetch!is a noop and raises an error.
Link to this section Summary
Functions
Returns Crux.Cache.None
Is a noop returning :ok
Returns Crux.Cache.None
Is a noop returning :error
Is a noop raising an error
Returns Crux.Cache.None
Returns atomified data as is
Returns Crux.Cache.None
Returns atomified data as is
Returns Crux.Cache.None
Link to this section Functions
Link to this function
channel_cache()
View Source
channel_cache()
View Source
channel_cache() :: module()
channel_cache() :: module()
Returns Crux.Cache.None.
Link to this function
delete(id)
View Source
delete(id)
View Source
delete(Crux.Cache.key()) :: :ok
delete(Crux.Cache.key()) :: :ok
Is a noop returning :ok.
Link to this function
emoji_cache()
View Source
emoji_cache()
View Source
emoji_cache() :: module()
emoji_cache() :: module()
Returns Crux.Cache.None.
Link to this function
fetch(id)
View Source
fetch(id)
View Source
fetch(Crux.Cache.key()) :: :error
fetch(Crux.Cache.key()) :: :error
Is a noop returning :error.
Link to this function
fetch!(id)
View Source
fetch!(id)
View Source
fetch!(Crux.Cache.key()) :: no_return()
fetch!(Crux.Cache.key()) :: no_return()
Is a noop raising an error.
Link to this function
guild_cache()
View Source
guild_cache()
View Source
guild_cache() :: module()
guild_cache() :: module()
Returns Crux.Cache.None.
Link to this function
insert(data) View Source
Returns atomified data as is.
Link to this function
presence_cache()
View Source
presence_cache()
View Source
presence_cache() :: module()
presence_cache() :: module()
Returns Crux.Cache.None.
Link to this function
update(data) View Source
Returns atomified data as is.
Link to this function
user_cache()
View Source
user_cache()
View Source
user_cache() :: module()
user_cache() :: module()
Returns Crux.Cache.None.