summaryrefslogtreecommitdiff
path: root/test/support/null_cache.ex
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2024-03-08 12:12:55 +0100
committermarcin mikołajczak <git@mkljczk.pl>2024-03-08 12:12:55 +0100
commitc0c4a9ed0d3cd154de15a8bb0767e2d4e5f4900f (patch)
tree0641fb03061bd783a15d06633408da4aa7592e76 /test/support/null_cache.ex
parent9fc6676d8c080dbd630434275363cc6536a35116 (diff)
parent139057f346f5903e0ed21ea91e7d43fd906fe914 (diff)
downloadpleroma-c0c4a9ed0d3cd154de15a8bb0767e2d4e5f4900f.tar.gz
pleroma-c0c4a9ed0d3cd154de15a8bb0767e2d4e5f4900f.zip
Merge remote-tracking branch 'origin/develop' into instance-contact-account
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
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