如何在App Engine Node.js Standard上访问内存缓存 [英] How to access memcache on App Engine Nodejs Standard

查看:72
本文介绍了如何在App Engine Node.js Standard上访问内存缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个人如何从nodejs标准环境访问内存缓存?

How does one access memcache from the nodejs standard environment?

推荐答案

该文档显然没有提及可用于Node.JS标准环境的App Engine内存缓存,至少目前还没有:

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) under How-to Guides in the left-side navigation bar for Google App Engine Node.js Standard Environment Documentation

但是可能还有其他选择.来自 API&参考:

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

这会导致 Node.js程序包,在这里我可以看到:

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

这会导致 Cloud Redis:Node.js客户端.

这与 Memcache 部分中的建议一致将服务从标准环境迁移到灵活环境指南中,具有相同问题的灵活环境(明确记录的除外):

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):

Memcache服务当前不适用于App Engine 灵活的环境

The Memcache service is currently not available for the App Engine flexible environment

这篇关于如何在App Engine Node.js Standard上访问内存缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆