View Source Mobilizon.Service.Export.Cachable behaviour (Mobilizon v5.0.0-beta.1)

Behavior that export modules that use caching should implement

Summary

Callbacks

@callback create_cache(String.t()) :: any()

Functions

Link to this function

clear_all_caches(entity)

View Source
@spec clear_all_caches(%{
  :__struct__ =>
    Mobilizon.Actors.Actor | Mobilizon.Events.Event | Mobilizon.Posts.Post,
  optional(any()) => any()
}) :: {:error, boolean()} | {:ok, boolean()}