Created
December 7, 2014 16:01
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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