diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2024-02-22 12:03:06 +0100 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2024-02-22 12:03:06 +0100 |
commit | 05cb931e4d5e312477cc6c4cf80ab10180b84fd1 (patch) | |
tree | 639c8a4939ece54817c89a17fed2638a99802fbc /test/support/null_cache.ex | |
parent | e798be90accbc93e9c7102a51ffd2575c9e617ec (diff) | |
parent | f0468697cd74f4ec062f9c6feda53cfbe9e4500c (diff) | |
download | pleroma-05cb931e4d5e312477cc6c4cf80ab10180b84fd1.tar.gz pleroma-05cb931e4d5e312477cc6c4cf80ab10180b84fd1.zip |
Merge remote-tracking branch 'origin/develop' into post-languages
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
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 |