我在 Google App Engine 中使用我的 Nodejs 设置了 Memorystore Redis。我想知道如何访问我的 redis 实例以便手动管理(如del
)密钥?
有从 Compute Engine 访问的这个文档,但是从 GAE 呢?
我在 Google App Engine 中使用我的 Nodejs 设置了 Memorystore Redis。我想知道如何访问我的 redis 实例以便手动管理(如del
)密钥?
有从 Compute Engine 访问的这个文档,但是从 GAE 呢?
您可以在此处找到有关如何将 App Engine 连接到 Cloud Memorystore 的类似教程。
Basically the steps consist in setting up Serverless VPC Access and afterwards using the standard nodejs Redis library to interact with your Memorystore instance. Apart from this there are no more Cloud specific steps to follow, just write your code and have fun.
Separately, as filip26 pointed out you also have the Google Cloud Memorystore library, this is meant to manage Memorystore instances and configurations as you would do through the Cloud SDK or the Console. However they don'tserve to interact with the database in the sense of adding or deleting entries.
附带说明一下,在 Memorystore 中不允许使用本地 Redis 服务器中可用的某些 Redis 命令,您可以在此处找到有关这些限制的更多信息。