As per this Caching Application Data 
<https://cloud.google.com/appengine/docs/flexible/nodejs/caching-application-data>
 article, 
the flexible environment provides a standard memcached service. It enables 
access by setting the environment variables you've mentioned.

I was able to set and get values from memcache by following the guide on 
the provided link. It was not necessary to spin up my own servers. Judging 
from the error, I presume you've already installed the memcached client 
library with npm install --save memcached.

   - Do you have any standard environment runtime that can successfully 
   access memcache?
   - Do you get the same error if you redeploy this Nodejs module?
   - If so, do you also get the same address and port from the env 
   variables?
   - Does the error occur with new Memcached() or when attempting to get/set
   ?
   

On Thursday, April 21, 2016 at 5:48:35 AM UTC-4, Alejandro Recarey wrote:
>
> Hi all,
>
> I have started using App Engine and am super happy with the docs and 
> examples. Kudos!
>
> However, I'm stumbling upon an issue with trying to use the memcache 
> service. I don't even know if it should work for the flexible environment. 
> I'm using the environment variables:
> MEMCACHE_PORT_11211_TCP_ADDR
>
> and:
> MEMCACHE_PORT_11211_TCP_PORT
>
> , and by logging I'm seeing that they are actually being set in 
> production, so I assume I should have access. 
>
> Howeve once in production I'm seeing this error:
>
> Error: Server at 172.17.0.3:11211 not available
>
> So they are being set (my defaults are "localhost" and "11211"), it just 
> seems I don't have access.
>
> Should the flexible App Engine environment have access to the Memcached 
> pool? Or do I have to spin up my own servers?
>
> Thanks!
>
> Alex
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3747f75d-a88f-434b-b7f4-74017b9e9b98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to