Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)Distributed Cache Service | Distributed Cache Service | | Controller Service API: DistributedMapCacheClient Implementations: HazelcastMapCacheClient SimpleRedisDistributedMapCacheClientService DistributedMapCacheClientService RedisDistributedMapCacheClientService | The Controller Service that is used to get the cached values. |
Put Cache Value In Attribute | Put Cache Value In Attribute | | | If set, the cache value received will be put into an attribute of the FlowFile instead of a the content of theFlowFile. The attribute key to put to is determined by evaluating value of this property. If multiple Cache Entry Identifiers are selected, multiple attributes will be written, using the evaluated value of this property, appended by a period (.) and the name of the cache entry identifier. Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables) |
Max Length To Put In Attribute | Max Length To Put In Attribute | 256 | | If routing the cache value to an attribute of the FlowFile (by setting the "Put Cache Value in attribute" property), the number of characters put to the attribute value will be at most this amount. This is important because attributes are held in memory and large attributes will quickly cause out of memory issues. If the output goes longer than this value, it will be truncated to fit. Consider making this smaller if able. |
Character Set | Character Set | UTF-8 | | The Character Set in which the cached value is encoded. This will only be used when routing to an attribute. |
Relationships:
Name | Description |
---|
success | If the cache was successfully communicated with it will be routed to this relationship |
failure | If unable to communicate with the cache or if the cache entry is evaluated to be blank, the FlowFile will be penalized and routed to this relationship |
not-found | If a FlowFile's Cache Entry Identifier was not found in the cache, it will be routed to this relationship |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
user-defined | If the 'Put Cache Value In Attribute' property is set then whatever it is set to will become the attribute key and the value would be whatever the response was from the Distributed Map Cache. If multiple cache entry identifiers are selected, multiple attributes will be written, using the evaluated value of this property, appended by a period (.) and the name of the cache entry identifier. For example, if the Cache Entry Identifier property is set to 'id,name', and the user-defined property is named 'fetched', then two attributes will be written, fetched.id and fetched.name, containing their respective values. |
State management:
This component does not store state.Restricted:
This component is not restricted.Input requirement:
This component requires an incoming relationship.System Resource Considerations:
None specified.See Also:
DistributedMapCacheClientService, DistributedMapCacheServer, PutDistributedMapCache