Message:

Subscribe rss
Blog categories
All | Backendless features
Feature 86: Checking is object exists in server-side cache
April 4, 2015 by markpiller
Spread the love

Previously I wrote about how to store and retrieve objects to and from server-side in-memory cache. Quite often when working with cache, it is required to check if an object already exists in cache. Backendless provides an API for that function. The code below checks if an object exists in cache, if not, it places it in there and then runs the existence check again:

Asynchronous API (Android and Plain Java):

Synchronous API (Plain Java only):

The first time you run the code it produces the following output:

 

Share this post
Tweet about this on TwitterShare on FacebookGoogle+