--- title: "Cache Fetch Flow Behavior" slug: "cache-fetch-flow-behavior" updated: 2025-06-17T17:13:57Z published: 2025-06-17T17:13:57Z canonical: "documentation.decisions.com/cache-fetch-flow-behavior" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Cache Fetch Flow Behavior ## Overview This tutorial demonstrates how to use **Cache Fetch Flow Behavior**. This Flow Behavior can be used to fill the Cache in with data that needs to be kept for a certain period of time. Additionally, this tutorial demonstrates how to get a collection of data from the cache. In the following example, Cache a collection of Account Emails. Next, this Flow will fill a custom created Cache Type. Finally, a second Flow will get all items from the custom Cache Type. ## --- ## Example 1. From a **Designer Project**, select CREATE FLOW from the top **Action** bar. 1. Select **Flow**, provide a **Name**, and click CREATE. 2. Navigate to the **Properties** tab on the right. 3. Under the SETTINGS section, select **System Cache Flow Behavior** from the **Behavior Type** dropdown menu. 4. Attach a **GetAll** step from the INTEGRATION > INTERNAL SERVICES > ACCOUNTSERVICE category of the **Toolbox** tab; connect the Done path to the Cache Value step.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h05_02.png) 5. Select the Cache Value step to navigate to its Properties tab. 6. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h05_47.png) 7. **Select From Flow** map **GetAll1_Output.All EmailAddress** to INPUTS > **Value**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h06_36.png) 8. **Save** the Flow, then close with **X**. ### --- ## **Define Cache Type** 1. From **System > Administration >** **Cache**, select ADD **> TimeCacheDefinition** from the top Action bar.  ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h07_20.png) 2. In the **TimeCacheDefinition** dialog, under CACHE, check **Fill Cache Using Flow**; then, from **Cache Fill Flow**, PICK the **Flow** that was previously created in the beginning example. 3. Under CACHE INFORMATION, provide a **Configuration** **Name**. 4. Under TIME CACHE DEFINITION INFO, from the **Target Cache Config Name** dropdown, Select **Default.MemoryCache**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h08_26.png) 5. Click SAVE. 6. Verify that the **Cache** was created in the **Cache Folder**. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h09_13.png) 7. From a **Designer** **Project**, select CREATE FLOW from the top Action bar; select Flow, provide a Name, and click CREATE. 8. Attach a **[List] Get From Cache** step from the SYSTEM > CACHING category of the **Toolbox** tab, to the **Start** and **End** steps. 9. Navigate to and define the **Properties** tab for the [List] Get From Cache step.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h12_00.png) 1. Provide a **Cache Instance Name** and from the **CachTypeName** drop-down; select the Cache that was previously created. 2. Constant map, "Emails" to INPUTS > Key. 10. **Save** the Flow, then if desired, close via **X**. --- ## Debug 1. From the **Flow** **Designer**, click the **Debug** link on the top Action bar. 2. Click START DEBUGGING. 3. Click the **[List] Get From Cache** step, and select **View Input/Output Data.**The Output Data will display a list of the cached data.  ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h12_50.png)