Examples of GCacheFactory


Examples of com.google.appengine.api.memcache.stdimpl.GCacheFactory

   */
  public static String getMemData(String strJID, String strProperty)
  {
    GCache cache;
    try{
      GCacheFactory cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
      cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
      if(!cache.isEmpty())
      {
        if(cache.containsKey(strJID + "," + strProperty))
        {
          String value;
View Full Code Here

Examples of com.google.appengine.api.memcache.stdimpl.GCacheFactory

    datastore.put(entity);
   
    /* 将数据写入MemCache中 */
    GCache cache;
    try{
      GCacheFactory cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
      cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
      cache.put(strJID + "," + strProperty,value);
    } catch (javax.cache.CacheException e){
      log.info(strJID + ":JCache " + e.getMessage());
    }
  }
View Full Code Here

Examples of com.google.appengine.api.memcache.stdimpl.GCacheFactory

    datastore.put(entity);
   
    /* 将数据写入MemCache中 */
    GCache cache;
    try{
      GCacheFactory cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
      cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
      for(int i=0;i<strProperty.length;i++)
      {
        cache.put(strJID + "," + strProperty[i],value[i]);
      }
     
View Full Code Here

Examples of com.google.appengine.api.memcache.stdimpl.GCacheFactory

   */
  public static void setMemData(String strJID, String strProperty, String strData)
  {
    GCache cache;
    try{
      GCacheFactory cacheFactory;
      cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
      cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
      cache.put(strJID + "," + strProperty,strData);
    } catch (javax.cache.CacheException e){
      log.info(strJID + ":JCache " + e.getMessage());
    }
  }
View Full Code Here

Examples of com.google.appengine.api.memcache.stdimpl.GCacheFactory

    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);
View Full Code Here

Examples of com.google.appengine.api.memcache.stdimpl.GCacheFactory

    k = KeyFactory.createKey("setting",strJID);
    datastore.delete(k);
   
    GCache cache;
    try{
      GCacheFactory cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
      cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
      cache.remove(strJID + ",access_token");
      cache.remove(strJID + ",access_token_secret");
      cache.remove(strJID + ",last_id");
    } catch (javax.cache.CacheException e){
      Common.log.info(strJID + ":JCache " + e.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.