summaryrefslogtreecommitdiff
path: root/test/support/null_cache.ex
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2024-02-07 05:47:38 +0000
committerfeld <feld@feld.me>2024-02-07 05:47:38 +0000
commit72480e7b2fc19beaa8a0a524e8b1c83442debd01 (patch)
tree22df6edc6f1ad0919825efcebdb92a3af2d43a30 /test/support/null_cache.ex
parente9573627792df4cdaea15f1ca1563594f477cd8e (diff)
parent9f2319e50dc0516bde4bfa3b117ec4792e553bd2 (diff)
downloadpleroma-72480e7b2fc19beaa8a0a524e8b1c83442debd01.tar.gz
pleroma-72480e7b2fc19beaa8a0a524e8b1c83442debd01.zip
Merge branch 'rich-media-tests' into 'develop'
Pleroma.Web.RichMedia.Parser: Remove test-specific codepaths See merge request pleroma/pleroma!4053
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