Exchange Memcache on Gae with Go and Java

Is it possible to write to memcache from Go and read it from Java (on appengine)?

From the memcache viewer, it looks like the answer is “no,” since there are keys such as “Java string” and “Go string”. How to exchange [] bytes?

Are web hooks and datastores the only ways communications between Java and Go on Appengine?

thank

+3
source share
1 answer

I do not know the answer to your question, but you will find part of it in the makePbKey method in MemcacheSerialization.java . This shows how Java takes an object and makes a key out of it.

, appengine/memcache/memcache.go , AppEngine for Go Item.Key( ). . GetMulti, [] .

, , mkPbKey GetMulti, . , Java String 250, " Go, . ( mkPbKey , 200 , UTF-8. , , .)

+3

All Articles