diff options
author | Lain Soykaf <lain@lain.com> | 2024-05-27 20:03:14 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2024-05-27 20:03:14 +0400 |
commit | f4c0a01f097ec9d6d61dff3abfcda616b23e01e6 (patch) | |
tree | e821106c60e3180005be5add7a18dbe569171a74 /test/support/null_cache.ex | |
parent | 197647a04e66c1af3ae691a4507612fdbee9c48c (diff) | |
parent | 7798fdc71121459f479e0729fefdac195b1dca7d (diff) | |
download | pleroma-f4c0a01f097ec9d6d61dff3abfcda616b23e01e6.tar.gz pleroma-f4c0a01f097ec9d6d61dff3abfcda616b23e01e6.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into image-description-summary
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 |