0.0.5 • Published 4 years ago

@deptno/s3 v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@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

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago