Package io.ably.lib.push
Interface Storage
public interface Storage
Interface for an entity that supplies key value store
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes keys from storageint
Returns integer value based on key from storageReturns string value based on key from storagevoid
Put integer value in to storagevoid
Put string value in to storage
-
Method Details
-
put
Put string value in to storage- Parameters:
-
key
- name under which value is stored -
value
- stored string value
-
put
Put integer value in to storage- Parameters:
-
key
- name after which value is stored -
value
- stored integer value
-
get
Returns string value based on key from storage- Parameters:
-
key
- name under value is stored -
defaultValue
- value which is returned if key is not found - Returns:
- value stored under key or default value if key is not found
-
get
Returns integer value based on key from storage- Parameters:
-
key
- name under value is stored -
defaultValue
- value which is returned if key is not found - Returns:
- value stored under key or default value if key is not found
-
clear
Removes keys from storage- Parameters:
-
keys
- array of keys which values should be removed from storage
-