ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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?

Cause

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

Environment

Release : 10.1

Component : API GATEWAY

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)