3.0.0 • Published 1 year ago

dcache_content v3.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago