diff options
author | Lain Soykaf <lain@lain.com> | 2024-05-27 17:49:31 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2024-05-27 17:49:31 +0400 |
commit | 4325b1aec34734d8efbc7701d6bfdcf157e7cb0d (patch) | |
tree | 7995ee0c521da831709f1198ca7154fad0885306 /test/support/cachex_proxy.ex | |
parent | 3a03d9b65f96099e7c7a831469532c2cec7294c6 (diff) | |
parent | 6757382abec9ca47a9025b8bed61047414cee20f (diff) | |
download | pleroma-4325b1aec34734d8efbc7701d6bfdcf157e7cb0d.tar.gz pleroma-4325b1aec34734d8efbc7701d6bfdcf157e7cb0d.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into nsfw-api-mrf
Diffstat (limited to 'test/support/cachex_proxy.ex')
-rw-r--r-- | test/support/cachex_proxy.ex | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/support/cachex_proxy.ex b/test/support/cachex_proxy.ex index de1f1c766..8f27986a9 100644 --- a/test/support/cachex_proxy.ex +++ b/test/support/cachex_proxy.ex @@ -1,5 +1,5 @@ # Pleroma: A lightweight social networking server -# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/> +# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/> # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.CachexProxy do @@ -27,9 +27,15 @@ defmodule Pleroma.CachexProxy do defdelegate fetch!(cache, key, func), to: Cachex @impl true + defdelegate fetch(cache, key, func), to: Cachex + + @impl true defdelegate expire_at(cache, str, num), to: Cachex @impl true + defdelegate expire(cache, str, num), to: Cachex + + @impl true defdelegate exists?(cache, key), to: Cachex @impl true |