---
title: "@vltpkg/cache-unzip: index — vlt docs"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/api-reference/cache-unzip/module_index"
image: "https://docs.vlt.io/og/client/api-reference/cache-unzip/module_index"
lang: "en"
---

# index

## Functions

### register()

```ts
function register(
   path, 
   key, 
   store?, 
   integrity?): void
```

Defined in: index.ts:23

Queue the cache entry at `key` in the cache folder `path` for the background child. Pass the global store root as `store` to also explode it there (only when `VLT_STORE_LINKER` enables the store), and the tarball's `integrity` if its entry may only be cached under that.

#### Parameters

| Parameter    | Type                     |
| ------------ | ------------------------ |
| `path`       | `string`                 |
| `key`        | `string`                 |
| `store`?     | `string`                 |
| `integrity`? | `` `sha512-${string}` `` |

#### Returns

`void`
