summaryrefslogtreecommitdiff
path: root/lib/polyjuice/client/storage.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/polyjuice/client/storage.ex')
-rw-r--r--lib/polyjuice/client/storage.ex12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/polyjuice/client/storage.ex b/lib/polyjuice/client/storage.ex
index 6ca4ffa..3f5e26d 100644
--- a/lib/polyjuice/client/storage.ex
+++ b/lib/polyjuice/client/storage.ex
@@ -49,6 +49,18 @@ defprotocol Polyjuice.Client.Storage do
def set_sync_token(storage, token)
@doc """
+ Store the ID for a filter.
+ """
+ @spec set_filter_id(storage :: __MODULE__.t(), filter :: map, filter_id :: String.t()) :: any
+ def set_filter_id(storage, filter, filter_id)
+
+ @doc """
+ Get the ID stored for a filter, or `nil' if no ID has been stored.
+ """
+ @spec get_filter_id(storage :: __MODULE__.t(), filter :: map) :: String.t() | nil
+ def get_filter_id(storage, filter)
+
+ @doc """
Store data for a specific key.
"""
@spec kv_put(storage :: __MODULE__.t(), key :: String, value :: __MODULE__.value()) :: any