Crux vdev 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:

  • cache and update will always return the atomtified data.
  • delete is a noop and returns :ok
  • fetch is a noop and returns :error
  • fetch! is a noop and raises an error.

Link to this section Summary

Functions

Is a noop returning :ok.

Is a noop returning :error.

Is a noop raising an error.

Returns atomified data as is.

Returns atomified data as is.

Link to this section Functions

Link to this function

channel_cache() View Source
channel_cache() :: module()

Returns Crux.Cache.None.

Is a noop returning :ok.

Link to this function

emoji_cache() View Source
emoji_cache() :: module()

Returns Crux.Cache.None.

Is a noop returning :error.

Is a noop raising an error.

Link to this function

guild_cache() View Source
guild_cache() :: module()

Returns Crux.Cache.None.

Returns atomified data as is.

Link to this function

presence_cache() View Source
presence_cache() :: module()

Returns Crux.Cache.None.

Returns atomified data as is.

Link to this function

user_cache() View Source
user_cache() :: module()

Returns Crux.Cache.None.