Assigned
Status Update
Comments
cp...@google.com <cp...@google.com>
kn...@google.com <kn...@google.com>
kn...@google.com <kn...@google.com> #2
i meant the following:
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.MemcacheServiceFactory;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
public class AppEngineCache implements Map {
protected MemcacheService cache = MemcacheServiceFactory.getMemcacheService();
public int size() {
return new Long(cache.getStatistics().getItemCount()).intValue();
}
public boolean isEmpty() {
return cache.getStatistics().getItemCount() != 0;
}
public boolean containsKey(Object key) {
return cache.contains(key);
}
public boolean containsValue(Object value) {
throw new UnsupportedOperationException("containsValue() is not supported in
App Engine");
}
public Object get(Object key) {
return cache.get(key);
}
public Object put(Object key, Object value) {
cache.put(key, value);
return value;
}
public Object remove(Object key) {
Object value = cache.get(key);
cache.delete(key);
return value;
}
public void putAll(Map m) {
cache.putAll(m);
}
public void clear() {
cache.clearAll();
}
public Set keySet() {
throw new UnsupportedOperationException("keySet() is not supported in App
Engine");
}
public Collection values() {
throw new UnsupportedOperationException("values() is not supported in App
Engine");
}
public Set entrySet() {
throw new UnsupportedOperationException("entrySet() is not supported in App
Engine");
}
}
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.MemcacheServiceFactory;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
public class AppEngineCache implements Map {
protected MemcacheService cache = MemcacheServiceFactory.getMemcacheService();
public int size() {
return new Long(cache.getStatistics().getItemCount()).intValue();
}
public boolean isEmpty() {
return cache.getStatistics().getItemCount() != 0;
}
public boolean containsKey(Object key) {
return cache.contains(key);
}
public boolean containsValue(Object value) {
throw new UnsupportedOperationException("containsValue() is not supported in
App Engine");
}
public Object get(Object key) {
return cache.get(key);
}
public Object put(Object key, Object value) {
cache.put(key, value);
return value;
}
public Object remove(Object key) {
Object value = cache.get(key);
cache.delete(key);
return value;
}
public void putAll(Map m) {
cache.putAll(m);
}
public void clear() {
cache.clearAll();
}
public Set keySet() {
throw new UnsupportedOperationException("keySet() is not supported in App
Engine");
}
public Collection values() {
throw new UnsupportedOperationException("values() is not supported in App
Engine");
}
public Set entrySet() {
throw new UnsupportedOperationException("entrySet() is not supported in App
Engine");
}
}
be...@gmail.com <be...@gmail.com> #3
Is there a host/port we can connect to with a regular nodejs memcache client?
Has the AppEngine Memcache service been removed/blocked when the runtime is nodejs specifically?
Has the AppEngine Memcache service been removed/blocked when the runtime is nodejs specifically?
[Deleted User] <[Deleted User]> #4
Any updates on this?
vi...@gmail.com <vi...@gmail.com> #6
It would be very nice to add memcache to store session data or computational heavy object.
Please consider making it available.
Please consider making it available.
vi...@gmail.com <vi...@gmail.com> #7
It seems that there is a memcache instance running when I go to https://console.cloud.google.com/appengine/memcache?project=. ..
So the only problem is really how to access that instance from the node.js runtime ?
So the only problem is really how to access that instance from the node.js runtime ?
ch...@gmail.com <ch...@gmail.com> #8
Is this even in the todo list?
vi...@gmail.com <vi...@gmail.com> #9
My understanding is that the app engine memcache uses a non-standard protocol. Which probably means that it will never come to node.js (or other runtime which does not currently support it).
It seems like the recommended solution is to use
Description