---
schema_version: "1"
id: 62059c7947d62d3bad644124f75f8d1f84f92679ab25f5cef86776c7657409b9
title: MUnit Storage Event Processors
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/latest/storage-event-processors.md
canonical_url: https://docs.mulesoft.com/munit/latest/storage-event-processors
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f67717a15dc6360997ce65c4fa91b47e6d06060bb81fb901ce14d8211261028e
description: MuleSoft Documentation Site
release: "3.7"
latest: true
---
---
product: MUnit
version: 3.7
is-latest-version: true
---

# MUnit Storage Event Processors

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

![logo acb active](/mulesoft/current/en-us/_/img/icons/anypoint-code-builder.svg "Anypoint Code Builder")Anypoint Code
Builder

![logo studio active](/mulesoft/current/en-us/_/img/icons/studio.svg "Anypoint Studio")Anypoint Studio

MUnit Storage event processors manage temporary key-value storage during a MUnit test, letting you
store, retrieve, and remove data across test steps. All stored data is cleared automatically when
each test ends.

## Store Operation

Stores the given data associated with the given key. If `value` not set, it defaults to the
`payload`.

```xml
<munit-tools:store key="myKey">
    <munit-tools:value>#[person : { name: 'John', lastName: 'Smith' }]</munit-tools:value>
</munit-tools:store>
```

## Retrieve Operation

Retrieves the data associated with the given key

```xml
<munit-tools:retrieve key="myKey"/>
```

## Remove Operation

Removes and returns the data associated with the given key

```xml
<munit-tools:remove key="myKey"/>
```

## Clear Stored Data Operation

Clears all stored data

```xml
<munit-tools:clear-stored-data/>
```
