
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@forgerock/openam-agent-cache-simple
Advanced tools
Simple in-memory cache for the OpenAM Policy Agent for NodeJS
Simple in-memory cache for the OpenAM Policy Agent for NodeJS
Installation: npm install @forgerock/openam-agent-cache-simple
Cache
Kind: global class
Extends: Cache
Cache
Promise
Promise
Promise
Cache implementation that stores entries in an object in memory (not efficient for large caches)
Param | Type | Default | Description |
---|---|---|---|
[options] | object | Options | |
[options.expireAfterSeconds] | number | 300 | Expiration time in seconds (if undefined, entries won't expire) |
[options.logger] | winston~Logger | Logger |
Example
var agent = new PolicyAgent({
cache: new SimpleCache({expireAfterSeconds: 600}) // cached entries expire after 10 minutes
...
})
Promise
Get a single cached item If the entry is not found, reject
Kind: instance method of SimpleCache
Param | Type |
---|---|
key | string |
Store a single cached item (overwrites existing)
Kind: instance method of SimpleCache
Param | Type |
---|---|
key | string |
value | * |
Promise
Remove a single cached item
Kind: instance method of SimpleCache
Param | Type |
---|---|
key | string |
Promise
If this were a database, it would close the connection, but since it's not, it doesn't
Kind: instance method of SimpleCache
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. ForgeRock does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in production configurations.
ForgeRock does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. ForgeRock disclaims all warranties, expressed or implied, and in particular, disclaims all warranties of merchantability, and warranties related to the code, or any service or software related thereto.
ForgeRock shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.
FAQs
Simple in-memory cache for the OpenAM Policy Agent for NodeJS
The npm package @forgerock/openam-agent-cache-simple receives a total of 1 weekly downloads. As such, @forgerock/openam-agent-cache-simple popularity was classified as not popular.
We found that @forgerock/openam-agent-cache-simple demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.