Skip to content

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);


Argument                Description
key identifies the object to check in cache.


Backendless.cache.contains("firstorder").then((result) {
  print("Object exists in cache - $result");