Skip to content

Retrieving data from cache

This API request retrieves an object from Backendless cache. If object is not present in cache, the method returns null for complex types or default value for primitive values. All methods are available via Backendless.Cache.[methodname] accessor:

Future<dynamic> Backendless.cache.get(String key);


Argument                Description
key identifies the object to retrieve from cache.


Backendless.cache.get("foo").then((result) {
  print("Cache value: $result");

Backendless.cache.get<Order>("firstorder").then((order) {
  print("Order from cache: $order");