Cache Definitions
  • 07 Mar 2024
  • 1 Minute to read
  • Dark
    Light

Cache Definitions

  • Dark
    Light

Article summary

Overview

The primary function of the Cache is to store data temporarily for quicker access in the future. Cache storage is commonly used in scenarios where data results from an external system need to be stored in a location where the data will not be frequently edited (e.g. data received from REST API Calls or via an External Database, etc). Another use case is when a user is fetching data from one Flow to use in another Flow. 

Creating a Cache Definition

Navigate to the desired Designer Folder > Settings > Health > Infrastructure > Cache. On the top action panel, click ADD. Select the desired Cache Definition.

Cached data is stored in the App Server Memory and is only meant to be temporary.


Cache Types

The following Cache definitions summarize the storage location of the different Cache types.

Cache DefinitionDescription
DatabaseStored in Database Table
FileStored in a File
File DirectoryStored in File Directory
MemoryStored in Memory (RAM)
NoCacheCache data will not be stored anywhere. The data will be ignored. This is an advanced Cache that excludes certain objects.
WeakKeeps an object in the cache unless the object is disposed
RedisStores the cache in Redis Server. Users need to configure the Redis Server URL and hit the test connection before saving. If clustering is enabled and has a valid connection, the Redis connection will default to that particular connection string.

The following Cache definitions are policies by which the cache will store and empty data.

Cache DefinitionDescription
AliasStores data under a different target Configuration Name
PersistentMemoryAuto resets the memory cache based on user input
SizeStores data in the cache based on object size
TimeStores the data for a time span based on user input



For further information on Flows, visit the Decisions Forum.

Was this article helpful?

What's Next