Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
catbox-memory
Advanced tools
Readme
Memory adapter for catbox. This adapter is not designed to share a common cache between multiple processes (e.g. in a cluster mode). It uses a single interval timeout to look for expired records and clean them from memory.
Lead Maintainer - Wyatt Preul
maxByteSize
- sets an upper limit on the number of bytes that can be stored in the
cache. Once this limit is reached no additional items will be added to the cache
until some expire. The utilized memory calculation is a rough approximation and must
not be relied on. Defaults to 104857600
(100MB).minCleanupIntervalMsec
- the minimum number of milliseconds in between each cache cleanup.
Defaults to 1 second (1000
).allowMixedContent
- by default, all data is cached as JSON strings, and converted
to an object using JSON.parse()
on retrieval. By setting this option to true
,
Buffer
data can be stored alongside the stringified data. Buffer
s are not
stringified, and are copied before storage to prevent the value from changing while
in the cache. Defaults to false
.cloneBuffersOnGet
- by default, buffers stored in the cache with allowMixedContent
set to true
are copied when they are set but not when they are retrieved. This means
a change to the buffer returned by a get()
will change the value in the cache. To prevent
this, set cloneBuffersOnGet
to true
to always return a copy of the cached buffer. Defaults
to false
.FAQs
Memory adapter for catbox
The npm package catbox-memory receives a total of 24,595 weekly downloads. As such, catbox-memory popularity was classified as popular.
We found that catbox-memory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.