dcache_content
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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)

```

Readme

Keywords

none

Package Sidebar

Install

npm i dcache_content

Weekly Downloads

4

Version

3.0.0

License

ISC

Unpacked Size

11.8 kB

Total Files

12

Last publish

Collaborators

  • lucasbadico