How does one access memcache from the nodejs standard environment?
Asked
Active
Viewed 3,719 times
11
-
2GCP is disaster for developing node.js app, many stuff is under developing and have no documentation, included memcache... though I finally choose to use python, but I found this https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/appengine/memcached/app.js once before. I think it is still helpful for you to get start. – MT-FreeHK Jun 26 '18 at 02:05
-
I ended up writing a service in another language to access memcache – Tim Jun 26 '18 at 03:00
-
Yes, I came up to use python instead after suffering in nodejs. – MT-FreeHK Jun 26 '18 at 03:02
-
1Ah yes it's frustrating. At least AWS doesn't have those weird limitations. I mean why don't they just open access to the default GAE memcache service just like any other languages? I don't get why nodejs specifically can't access it... – benji Nov 14 '18 at 08:54
1 Answers
7
The documentation apparently makes no reference to the App Engine memcache being available to the Node.JS standard environment, at least not at this time:
- there is no
Node.JS
language tab in the Memcache Overview page(s) - there is no
Caching Application Data
section (under which the memcache-related docs exist for the other languages) underHow-to Guides
in the left-side navigation bar for Google App Engine Node.js Standard Environment Documentation
But there may be an alternative. From APIs & Reference:
Which leads to Node.js Packages, where I can see:
Which leads to Cloud Redis: Node.js Client.
This is inline with the suggestions from the Memcache section of the Migrating Services from the Standard Environment to the Flexible Environment guides, the flexible environment having the same problem (except clearly documented):
The Memcache service is currently not available for the App Engine flexible environment

Dan Cornilescu
- 39,470
- 12
- 57
- 97
-
2Thanks for the help! I have had a hard time with nodejs on App Engine so far in both flex and standard. – Tim Jun 26 '18 at 02:58
-
4April/2019 and Google App Engine with NodeJS still do not support the AppEngine's memcache. – Feu Apr 22 '19 at 01:38
-
2April/2020 and Still Google App Engine with nodeJs does not support the AppEngine's Free Memcache. But there are paid alternative available now with a name called MemoryStore service(Redis) for both standard via VPC and flex env. https://cloud.google.com/appengine/docs/standard/nodejs/using-memorystore – Bala.Raj Apr 28 '20 at 07:55