Example application that uses Redis to set values in a Redis cache

This basic pattern uses the redis winglib with a cloud function.
When the cloud function is invoked a value is set in the redis database using the redis inflight API.
1bring redis; 2bring cloud; 3 4// Create a redis resource 5let redisInstance = new redis.Redis(); 6 7new cloud.Function(inflight () => { 8 // Set value in the redis cache 9 redisInstance.set("mykey", "myvalue"); 10});
Resources used in this example
- Function - Resource for holding lists of messages.
- Redis winglib - Resource for storing data in the cloud.