New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dcache_content

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcache_content

cache utility with dynamodb

3.0.0
latest
npm
Version published
Maintainers
1
Created
Source

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)

```

FAQs

Package last updated on 10 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts