diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2024-03-18 13:50:25 +0100 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2024-03-18 13:50:25 +0100 |
commit | 918c406a914d49b15beb3611e1c780d0e0d253cd (patch) | |
tree | f54000d2e2f19ad97c75f71f443cff6b9810f5ca /test/support/null_cache.ex | |
parent | 90b442727e4e2e56b4b68a15172a5ef7516531df (diff) | |
parent | cf0aa1238ccd137219253d76355f2dc0f89679ac (diff) | |
download | pleroma-918c406a914d49b15beb3611e1c780d0e0d253cd.tar.gz pleroma-918c406a914d49b15beb3611e1c780d0e0d253cd.zip |
Merge remote-tracking branch 'origin/develop' into instance_rules
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 |