summaryrefslogtreecommitdiff
path: root/test/support/null_cache.ex
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2024-05-18 11:30:25 +0200
committermarcin mikołajczak <git@mkljczk.pl>2024-05-18 11:30:25 +0200
commit2e76ceb5b4c8abf860f9d078c80ae0fcbe1a4ffd (patch)
tree6a803ea5efa8f6a93f04d657f3cb56a0b9ff5b17 /test/support/null_cache.ex
parent1ed8ae2d8e86ed26d4e21f59e95995795bcb282b (diff)
parent99eab1fa2a39b7a7fba6cdbb92c01e9c7c81aa88 (diff)
downloadpleroma-2e76ceb5b4c8abf860f9d078c80ae0fcbe1a4ffd.tar.gz
pleroma-2e76ceb5b4c8abf860f9d078c80ae0fcbe1a4ffd.zip
Merge remote-tracking branch 'origin/develop' into status-notification-type
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