summaryrefslogtreecommitdiff
path: root/test/support/null_cache.ex
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2024-03-07 13:13:49 +0100
committermarcin mikołajczak <git@mkljczk.pl>2024-03-07 13:13:49 +0100
commitb7c625db0f8090ce11c75a19fbaee8f985b966c3 (patch)
tree0d631e593dd195014fc35d7203f82f331b35aff0 /test/support/null_cache.ex
parent47ce33a90d09878d5231ce9654853ebcd1b88c08 (diff)
parent8298b326a7a3081be262c73f734dfe3082962e83 (diff)
downloadpleroma-b7c625db0f8090ce11c75a19fbaee8f985b966c3.tar.gz
pleroma-b7c625db0f8090ce11c75a19fbaee8f985b966c3.zip
Merge remote-tracking branch 'origin/develop' into link-verification
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