You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@vltpkg/cache

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vltpkg/cache - npm Package Compare versions

Comparing version
0.0.0-3
to
0.0.0-4
+4
-4
package.json
{
"name": "@vltpkg/cache",
"description": "The filesystem cache for `@vlt/registry-client`",
"version": "0.0.0-3",
"version": "0.0.0-4",
"repository": {

@@ -24,5 +24,5 @@ "type": "git",

"rimraf": "^6.0.1",
"@vltpkg/error-cause": "0.0.0-3",
"@vltpkg/xdg": "0.0.0-3",
"@vltpkg/types": "0.0.0-3"
"@vltpkg/error-cause": "0.0.0-4",
"@vltpkg/types": "0.0.0-4",
"@vltpkg/xdg": "0.0.0-4"
},

@@ -29,0 +29,0 @@ "devDependencies": {

@@ -5,13 +5,12 @@ ![cache](https://github.com/user-attachments/assets/beb8e72b-9af4-42ff-a39c-11c937bffdb6)

The filesystem cache for `@vltpkg/registry-client`, but also, a general-purpose filesystem-backed [LRUCache](http://npm.im/lru-cache)
The filesystem cache for `@vltpkg/registry-client`, but also, a
general-purpose filesystem-backed [LRUCache](http://npm.im/lru-cache)
**[Usage](#usage)**
·
**[Note](#note)**
**[Usage](#usage)** · **[Note](#note)**
## Overview
This is very minimal on features, because it has a very narrow use case, but if you want to have a persistently fs-backed LRU
memory cache of Buffers using strings as keys, then this is the
thing to use.
This is very minimal on features, because it has a very narrow use
case, but if you want to have a persistently fs-backed LRU memory
cache of Buffers using strings as keys, then this is the thing to use.

@@ -72,3 +71,5 @@ ## Usage

- The key type must be a string. It gets sha512 hashed to determine the file on disk.
- The value must be a Buffer, so that it can be written to a file and read from it without having to convert anything.
- The key type must be a string. It gets sha512 hashed to determine
the file on disk.
- The value must be a Buffer, so that it can be written to a file and
read from it without having to convert anything.