diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-12-26 22:23:05 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-12-26 22:23:05 +0300 |
commit | 4134abef63e1165f5701741c1012e64cb908654c (patch) | |
tree | bf531d2f464297c46edeaaf02e6966c1695934a5 /test/support/cachex_proxy.ex | |
parent | cbb19d0e1882f5ce641f30b51d7156336f81aba9 (diff) | |
parent | e4f1d8f48c85b8a388d6c3945db157de5ce588c5 (diff) | |
download | pleroma-4134abef63e1165f5701741c1012e64cb908654c.tar.gz |
Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework
Diffstat (limited to 'test/support/cachex_proxy.ex')
-rw-r--r-- | test/support/cachex_proxy.ex | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/support/cachex_proxy.ex b/test/support/cachex_proxy.ex new file mode 100644 index 000000000..e296b5c6a --- /dev/null +++ b/test/support/cachex_proxy.ex @@ -0,0 +1,40 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.CachexProxy do + @behaviour Pleroma.Caching + + @impl true + defdelegate get!(cache, key), to: Cachex + + @impl true + defdelegate stream!(cache, key), to: Cachex + + @impl true + defdelegate put(cache, key, value, options), to: Cachex + + @impl true + defdelegate put(cache, key, value), to: Cachex + + @impl true + defdelegate get_and_update(cache, key, func), to: Cachex + + @impl true + defdelegate get(cache, key), to: Cachex + + @impl true + defdelegate fetch!(cache, key, func), to: Cachex + + @impl true + defdelegate expire_at(cache, str, num), to: Cachex + + @impl true + defdelegate exists?(cache, key), to: Cachex + + @impl true + defdelegate del(cache, key), to: Cachex + + @impl true + defdelegate execute!(cache, func), to: Cachex +end |