Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
bedrock-caches
Advanced tools
This is a collection of cache implementations for use in your application, e.g. for caching template data. Modules are seperated into several files so only the things you need get loaded.
A list of cache implementations:
Caches implement the Cache<K, V> interface, which makes it easy to implement your own caches.
Almost all caches have a constructor in the form of:
new Cache(options)
Where the options object contains the following keys:
The following methods are available on all caches:
Get the value associated with key
, doing a fetch if the value was not found.
Checks if the value is added to the local cache.
Does a direct fetch for the given key. The value is not stored in the cache.
Removes the value stored at key
from the cache. Will not report an error if no values were found.
Creates a new cache that will store values in-memory.
import { MemoryCache } from "bedrock-caches/lib/memory"
Creates a new cache that serializes values onto disk.
import { JSONFileCache } from "bedrock-caches/lib/json"
Creates a new cache that will listen to the change
-event of its values and
re-fetch as appropriate. The parentCache
is used to store the values in.
import { UpdateCache } from "bedrock-caches/lib/update"
FAQs
A collection of cache implementations for NodeJS
We found that bedrock-caches 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.