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];;
// [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 Memorystore for Redis API client for Node.js

Latest version published 2 months ago

Package Health Score

89 / 100
Full package analysis

Popular @google-cloud/redis functions