entity.setProperty("dm",true);
entity.setProperty("time", 5);
datastore.put(entity);
/* 将数据写入MemCache中 */
GCache cache;
try{
GCacheFactory cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
cache.put(strJID + ",access_token",oauth_token);
cache.put(strJID + ",access_token_secret",oauth_token_secret);
cache.put(strJID + "mention", true);
cache.put(strJID + "dm", true);
cache.put(strJID + "time", 5);
} catch (javax.cache.CacheException e){
Common.log.info(strJID + ":JCache " + e.getMessage());
}
}