Google Memcache With Java

0 views
Skip to first unread message

Ecd via StackOverflow

unread,
Aug 29, 2015, 10:08:07 AM8/29/15
to google-appengin...@googlegroups.com

Could you please help me for using Google Memcache Service with Java ? Maybe there is an authentication problem? Is that? How can i authenticate with p12 file?

MemcacheService syncCache = MemcacheServiceFactory.getMemcacheService("mycache");
              value = (byte[]) syncCache.get(key); // Read from cache.
              if (value == null) {
                // Get value from another source.
                // ........

                syncCache.put(key, value); // Populate cache.
              }

I am getting this error :

com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'memcache' or call 'Get()' was not found.
    at com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:173)
    at com.google.apphosting.api.ApiProxy$1.get(ApiProxy.java:171)
    at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:88)
    at com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:26)
    at com.google.appengine.api.memcache.MemcacheServiceImpl.get(MemcacheServiceImpl.java:49)


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/32286901/google-memcache-with-java
Reply all
Reply to author
Forward
0 new messages