summaryrefslogtreecommitdiff
path: root/test/support/null_cache.ex
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2024-05-20 12:30:15 +0400
committerLain Soykaf <lain@lain.com>2024-05-20 12:30:15 +0400
commitad26b6d593d83ddb539a5c61ee9f639f7b40531e (patch)
tree7df211d68414fea73074731b31be9f700cff8883 /test/support/null_cache.ex
parentddb9e90c405369496fdf9e6dfed593eff8d5dc5c (diff)
parente8cd6662eb2a534e3be16b522bf81b25b194edab (diff)
downloadpleroma-ad26b6d593d83ddb539a5c61ee9f639f7b40531e.tar.gz
pleroma-ad26b6d593d83ddb539a5c61ee9f639f7b40531e.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into bump-elixir
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