我在Google Cloud平台上创建了Redis。我的应用程序正在连接。但是,我不能在我创建的客户端中设置、获取、打开。有什么问题吗?因为它不在里面。那么我该如何管理呢?
const connectRedis = async () => {
const { CloudRedisClient } = require('@google-cloud/redis')
const thisClient = new CloudRedisClient()
const formattedParent = thisClient.locationPath('project', 'location')
const thisRequest = {
parent: formattedParent
}
const thisResponse = (await thisClient.listInstances(thisRequest))[0]
}thisClient.on ||找不到thisClient.on。
发布于 2021-10-04 15:31:12
https://stackoverflow.com/questions/67729073
复制相似问题