1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.CachexProxy do
6 @behaviour Pleroma.Caching
9 defdelegate get!(cache, key), to: Cachex
12 defdelegate stream!(cache, key), to: Cachex
15 defdelegate put(cache, key, value, options), to: Cachex
18 defdelegate put(cache, key, value), to: Cachex
21 defdelegate get_and_update(cache, key, func), to: Cachex
24 defdelegate get(cache, key), to: Cachex
27 defdelegate fetch!(cache, key, func), to: Cachex
30 defdelegate fetch(cache, key, func), to: Cachex
33 defdelegate expire_at(cache, str, num), to: Cachex
36 defdelegate expire(cache, str, num), to: Cachex
39 defdelegate exists?(cache, key), to: Cachex
42 defdelegate del(cache, key), to: Cachex
45 defdelegate execute!(cache, func), to: Cachex