Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
916B

  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2021 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 expire_at(cache, str, num), to: Cachex
  22. @impl true
  23. defdelegate exists?(cache, key), to: Cachex
  24. @impl true
  25. defdelegate del(cache, key), to: Cachex
  26. @impl true
  27. defdelegate execute!(cache, func), to: Cachex
  28. end