11

How does one access memcache from the nodejs standard environment?

Tim
  • 2,359
  • 2
  • 23
  • 21
  • 2
    GCP 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
  • 1
    Ah 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 Answers1

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:

But there may be an alternative. From APIs & Reference:

enter image description here

Which leads to Node.js Packages, where I can see:

enter image description here

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
  • 2
    Thanks 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
  • 4
    April/2019 and Google App Engine with NodeJS still do not support the AppEngine's memcache. – Feu Apr 22 '19 at 01:38
  • 2
    April/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