aws-parameter-cache v2.0.15 is a caching layer for AWS Systems Manager Parameter Store and Secrets Manager that reduces API calls and latency by caching parameter values in memory with configurable TTL. It wraps @aws-sdk/client-ssm and @aws-sdk/client-secrets-manager, offering a simple promise-based API. Supports automatic string list parsing and explicit refresh. Compatible with AWS Lambda and Node.js runtimes. Ships TypeScript definitions. Release cadence is active with frequent minor updates.
npm install aws-parameter-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetches a parameter from AWS SSM Parameter Store with caching and prints its value.
Install @aws-sdk/client-ssm and @aws-sdk/client-secrets-manager as peer dependencies.
Pass an options object: ssmParameter({ name: 'foo' }).Set maxAge in milliseconds or call param.refresh() before reading value.
npm install @aws-sdk/client-ssm
Use import { ssmParameter } from 'aws-parameter-cache' or const { ssmParameter } = require('aws-parameter-cache').Provide name: ssmParameter({ name: 'my-param' })