Skip to content

Instantly share code, notes, and snippets.

@thorwebdev
Created December 7, 2014 16:01
Show Gist options
  • Save thorwebdev/b432537502080f648ede to your computer and use it in GitHub Desktop.
Save thorwebdev/b432537502080f648ede to your computer and use it in GitHub Desktop.
We then build the index and store it to Memcache for fast read access.
//Build the index.
index.build();
//Write the index to Memcache.
MemcacheService syncCache = MemcacheServiceFactory.getMemcacheService();
//Last param is expiration date. Set to null to keep it in Memcache forever.
syncCache.put(group, index, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment