3.0.0 • Published 3 years ago

dcache_content v3.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

DCache

It expects the following envs:

AWS_DEFAULT_REGION (defaults to 'us-east-1')
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY

Install

npm i dcache_content

How to use

// import the class
import { CacheTool } from 'dcache_content'

// create the instance and pass the function that will create the cache record
const cacheTool = new CacheTool(yourAsyncCallbackGoesHere)

// just async 'getValue' and let we do the hard work
const value = await cacheTool.getValue(content, metadata, expirationHours)

```
3.0.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago