@deptno/s3
v0.0.5
Published
``` npm i @deptno/s3 ```
Downloads
3
Readme
@deptno/s3
npm i @deptno/s3
api
cache
s3 proxy
cache
const channels = await s3lib.cache<any[]>({
bucket: 'bucket',
key : `tmp/data.json`,
fetch() {
return dlib.scanAll({
TableName: 'ddb_table',
IndexName: 'index',
})
},
store(data) {
return JSON.stringify(data)
},
restore(data: string) {
return JSON.parse(data)
}
})
MIT