问题描述
一个人如何从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:
- Memcache概述Node.JS语言标签. >页面
- 在 Google App Engine Node.js标准环境文档
- 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
但是可能还有其他选择.来自 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):
这篇关于如何在App Engine Node.js Standard上访问内存缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!