How read cache in Apigee using node.js

Not applicable

Hi,

I am not able to read cache value in node.js

mycache is a response cache


var cache = apigee.getCache('mycache', {
resource: 'mycache',
scope: 'global'
});

cache.get('cache-key', function(err, data) {
console.log("data "+data);// not able to read
});

cache.remove('cache-key'); // able to delete

But i am able to remove the cache

Thanks

0 2 164
2 REPLIES 2

The node.js cache facility works with object cache and not response cache.

How do we differentiate between Response Cache and Object Cache?