mirkokiefer / s3store

Use AWS S3 as a database for objects with Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#s3store Build Status

Use AWS S3 as a database for objects.

##Documentation ###createClient(options)

var createClient = require('s3store');
var options = {
  key: 'aws_key',
  secret: 'aws_secret',
  bucket: 'mybucket',
  region: 'eu-west-1',
  namespace: 'mydb'
};
var client = createClient(options);

###client.writeObject(key, object, cb) Write an object with the given key.

###client.readObject(key, cb) Read an object.

###client.deleteObject(key, cb) Delete an object.

###client.readKeys(cb) Read all keys.

About

Use AWS S3 as a database for objects with Node.js

License:MIT License


Languages

Language:JavaScript 100.0%