How to use @google-cloud/redis - 2 common examples

To help you get started, we’ve selected a few @google-cloud/redis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / nodejs-redis / samples / quickstart.js View on Github external
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]
github googleapis / nodejs-redis / system-test / fixtures / sample / src / index.ts View on Github external
function main() {
  const cloudRedisClient = new CloudRedisClient();
}

@google-cloud/redis

Google Cloud Memorystore for Redis API client for Node.js

Apache-2.0
Latest version published 6 months ago

Package Health Score

82 / 100
Full package analysis

Popular @google-cloud/redis functions