-
Notifications
You must be signed in to change notification settings - Fork 32
ElastiCache client
SaltwaterC edited this page Nov 15, 2011
·
1 revision
aws.load('elasticache', [accessKeyId], [secretAccessKey])
elasticache.request(action, [query], callback)
The 'action' argument is the action required by the ElastiCache query API itself.
- elasticache.setCredentials(accessKeyId, secretAccessKey)
- elasticache.setMaxSockets(numberOfSockets)
- elasticache.getEndPoint()
- elasticache.getApiVersion()
- elasticache.setApiVersion(apiVersion)
// init the client
var elasticache = require('aws2js').load('elasticache', accessKeyId, secretAccessKey);
// call something of the ElastiCache query API
elasticache.request('action', {foo: 'bar'}, function (error, response) {
if (error) {
console.error(error);
} else {
console.log(response);
}
});
This client doesn't have region support.