diff options
author | Lain Soykaf <lain@lain.com> | 2024-05-27 19:21:20 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2024-05-27 19:21:20 +0400 |
commit | 03d0c5abfba6a334783b46a09d865dba6fde6586 (patch) | |
tree | d339c45678a7fb062075c537724b9b71d8944955 /test/support/null_cache.ex | |
parent | 1ab4ab8d38687634735e1415f395b072718ab1ab (diff) | |
parent | e93ae96e1323fae954c2ce482cbb1df9ed9441c6 (diff) | |
download | pleroma-03d0c5abfba6a334783b46a09d865dba6fde6586.tar.gz pleroma-03d0c5abfba6a334783b46a09d865dba6fde6586.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into tusooa/extract-fix
Diffstat (limited to 'test/support/null_cache.ex')
-rw-r--r-- | test/support/null_cache.ex | 6 |
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 |