Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main(projectId, location) {
const {CloudRedisClient} = require('@google-cloud/redis');
const client = new CloudRedisClient();
const formattedParent = client.locationPath(projectId, location);
const request = {
parent: formattedParent,
};
const resp = (await client.listInstances(request))[0];
console.info(resp);
}
// [END redis_quickstart]
function main() {
const cloudRedisClient = new CloudRedisClient();
}