---
url: https://docs.mochiexec.io/reference/cli/mochi_cache.md
description: Manage temporary key-value data.
---

# mochi cache

Manage temporary key-value data.

## Synopsis

Manage temporary key-value data. Values set outside executables runs persist globally, while values set within executables persist only for that execution scope.

## Options

| Flag | Type | Description |
|------|------|-------------|
| `-h, --help` |  | help for cache |

## Options inherited from parent commands

| Flag | Type | Description |
|------|------|-------------|
| `-L, --log-level` | `string` | Log verbosity level (debug, info, fatal) (default "info") |
| `--sync` |  | Sync flow cache and workspaces |

## See also

* [mochi](mochi.md) — Run and organize your development tasks
* [mochi cache clear](mochi_cache_clear.md) — Clear cache data. Use --all to remove data across all scopes.
* [mochi cache get](mochi_cache_get.md) — Get cached data by key.
* [mochi cache list](mochi_cache_list.md) — List all keys in the store.
* [mochi cache remove](mochi_cache_remove.md) — Remove a key from the cached data store.
* [mochi cache set](mochi_cache_set.md) — Set cached data by key.
