PutDistributedMapCache 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

Gets the content of a FlowFile and puts it to a distributed map cache, using a cache key computed from FlowFile attributes. If the cache already contains the entry and the cache update strategy is ‘keep original’ the entry is not replaced.’

Tags

cache, distributed, map, put

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Cache Entry IdentifierA FlowFile attribute, or the results of an Attribute Expression Language statement, which will be evaluated against a FlowFile in order to determine the cache key
Cache update strategyDetermines how the cache is updated if the cache already contains the entry
Distributed Cache ServiceThe Controller Service that is used to cache flow files
Max cache entry sizeThe maximum amount of data to put into cache

Relationships

NameDescription
failureAny FlowFile that cannot be inserted into the cache will be routed to this relationship
successAny FlowFile that is successfully inserted into cache will be routed to this relationship

Writes attributes

NameDescription
cachedAll FlowFiles will have an attribute ‘cached’. The value of this attribute is true, is the FlowFile is cached, otherwise false.

See also