s3asy

Simple S3 integration with a cache backed by Redis

Introduction

s3asy ('S-Three-Zee') is a simple library for issuing GET, PUT, and DELETE requests against Amazon S3. It allows caching of files in a local redis instance using the If-Modified-Since and Last-Modified headers as cache-control.

It achieves this simplicity by utilizing knox and cacheit under the hood.

Example

var S3 = require('s3asy');
var s3 = new S3({
  key: '<api-key-here>',
  secret: '<secret-here>',
  bucket: 'bucket-name',
  cache: true
});
 
s3.get('/some/path', {'x-amz-acl': 'private'}, function(errbody) {
  console.log(body);
});
 

API