![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bedrock-caches
Advanced tools
This is a collection of cache implementations for use in your applciation, 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
The npm package bedrock-caches receives a total of 1 weekly downloads. As such, bedrock-caches popularity was classified as not popular.
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.