Deleting object from cache¶
This method deleted an object from cache if it is present there. All methods are available via Backendless.Cache.[methodname]
accessor:
Future<void> Backendless.cache.delete(String key);
where:
Argument | Description |
---|---|
key |
identifies the object to delete from cache. |
Example¶
Backendless.cache.delete("firstorder").then((result) {
print("Object has been deleted from cache");
});
Codeless Reference¶
where:
Argument | Description |
---|---|
key name |
The name is used to identify the key that must be deleted from cache. |
This operation does not return a value.
Consider the following key-value pairs stored in cache:
The example deletes the object associated with the key "orderName"
from the cache.
The result of this operation will look as shown below after the Codeless logic runs, as you can see the object has been successfully deleted from cache: