Checking if key exists in cache¶
This API request checks if an object exists in cache. If object is present in cache, the method returns true, otherwise - false. All methods are available via Backendless.Cache.[methodname]
accessor:
Future<bool> Backendless.cache.contains(String key);
where:
Argument | Description |
---|---|
key |
identifies the object to check in cache. |
Example¶
Backendless.cache.contains("firstorder").then((result) {
print("Object exists in cache - $result");
});