summaryrefslogtreecommitdiff
path: root/test/support/null_cache.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2024-08-01 08:53:29 +0000
committerlain <lain@soykaf.club>2024-08-01 08:53:29 +0000
commit36d469cf022ea66947a73ee4c762d7f459aceee4 (patch)
tree5f8824d56f10d1c94353afeb77833cd250e67369 /test/support/null_cache.ex
parent7566b4a348c66fcea45bcb017979ece9c7b45b3a (diff)
parenta5d32aab50abf725196fa782775a38907b4b2afa (diff)
downloadpleroma-36d469cf022ea66947a73ee4c762d7f459aceee4.tar.gz
pleroma-36d469cf022ea66947a73ee4c762d7f459aceee4.zip
Merge branch 'release/2.7.0' into 'stable'
v2.7.0 See merge request pleroma/pleroma!4179
Diffstat (limited to 'test/support/null_cache.ex')
-rw-r--r--test/support/null_cache.ex6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/support/null_cache.ex b/test/support/null_cache.ex
index 9f1d45f1d..47c84174e 100644
--- a/test/support/null_cache.ex
+++ b/test/support/null_cache.ex
@@ -29,6 +29,9 @@ defmodule Pleroma.NullCache do
end
@impl true
+ def fetch(_, key, func), do: func.(key)
+
+ @impl true
def get_and_update(_, _, func) do
func.(nil)
end
@@ -37,6 +40,9 @@ defmodule Pleroma.NullCache do
def expire_at(_, _, _), do: {:ok, true}
@impl true
+ def expire(_, _, _), do: {:ok, true}
+
+ @impl true
def exists?(_, _), do: {:ok, false}
@impl true