logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

cachex_proxy.ex (1044B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.CachexProxy do
  5. @behaviour Pleroma.Caching
  6. @impl true
  7. defdelegate get!(cache, key), to: Cachex
  8. @impl true
  9. defdelegate stream!(cache, key), to: Cachex
  10. @impl true
  11. defdelegate put(cache, key, value, options), to: Cachex
  12. @impl true
  13. defdelegate put(cache, key, value), to: Cachex
  14. @impl true
  15. defdelegate get_and_update(cache, key, func), to: Cachex
  16. @impl true
  17. defdelegate get(cache, key), to: Cachex
  18. @impl true
  19. defdelegate fetch!(cache, key, func), to: Cachex
  20. @impl true
  21. defdelegate fetch(cache, key, func), to: Cachex
  22. @impl true
  23. defdelegate expire_at(cache, str, num), to: Cachex
  24. @impl true
  25. defdelegate expire(cache, str, num), to: Cachex
  26. @impl true
  27. defdelegate exists?(cache, key), to: Cachex
  28. @impl true
  29. defdelegate del(cache, key), to: Cachex
  30. @impl true
  31. defdelegate execute!(cache, func), to: Cachex
  32. end