Lookup from redis remote cache
search cancel

Lookup from redis remote cache

book

Article ID: 241519

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We are doing a record Lookup from redis cache in api gateway v10.0 and trying to print out the value but are only getting the Object as the output.

We are using the "Select Target Message" option with a context variable from the "Lookup from Remote Cache Assertion", which is being printed out.

Could you please help with this?

Environment

Release : 10.1

Component : API GATEWAY

Cause

The return is of type message, this is why it shows up as a Object 

Resolution

The configuration was working, the issue is the return back from Redis was message 

Need to set the Return message responses assertion with mainpart

${variableName.mainpart} 

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/10-1/policy-assertions/assertion-palette/message-routing-assertions/return-template-response-to-requestor-assertion.html

NOTE: To set the value for Cache Entry Key in Redis set the target using a variable (not response or request)