{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • API Design /
This question was closed Apr 19, 2016 at 03:34 PM by Oleksandr Skoryi for the following reason: The question is answered, right answer was accepted
avatar image
0
Question by Oleksandr Skoryi · Apr 19, 2016 at 12:35 PM · 280 Views cache

Invalidate cache issue

Hi everybody again. I've just created

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PopulateCache async="false" continueOnError="false" enabled="true" name="OpenCache">
    <DisplayName>OpenCache</DisplayName>
    <Properties/>
    <CacheKey>
        <KeyFragment ref="MessageID"/>
    </CacheKey>
    <CacheResource>SessionCache</CacheResource>
    <Scope>Global</Scope>
    <ExpirySettings>
        <TimeoutInSec>3600</TimeoutInSec>
    </ExpirySettings>
    <Source>uuid</Source>
</PopulateCache> 

and then build the simple chain LookupCache --> InvalidateCache --> LookupCache. the issue is that invalidate cache doesn't work. My second LookupCache still see the value stored in cache

My Invalidate Cache

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<InvalidateCache async="false" continueOnError="false" enabled="true" name="InvalidateSession">
    <DisplayName>InvalidateSession</DisplayName>
    <Properties/>
    <CacheKey>
        <KeyFragment ref="UUIDfromCache"/>
    </CacheKey>
    <CacheResource>SessionCache</CacheResource>
    <Scope>Exclusive</Scope>
    <!--<CacheContext>-->
    <!--    <APIProxyName>CachedProxy</APIProxyName>-->
    <!--    <ProxyName>default</ProxyName>-->
    <!--    <TargetName>default</TargetName>-->
    <!--</CacheContext>-->
    <PurgeChildEntries>false</PurgeChildEntries>
</InvalidateCache>

And Lookup

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<LookupCache async="false" continueOnError="false" enabled="true" name="GetUUIDFromCache">
    <DisplayName>GetUUIDFromCache</DisplayName>
    <Properties/>
    <CacheKey>
        <KeyFragment>rrt333ea-2722-940940-1</KeyFragment>
    </CacheKey>
    <CacheResource>SessionCache</CacheResource>
    <Scope>Global</Scope>
    <AssignTo>UUIDfromCache</AssignTo>
</LookupCache>

And I have one more question. I use messageid as key. Is it a good idea?

Comment
Add comment Show 3
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Anil Sagar @ Google ♦♦   · Apr 19, 2016 at 01:47 PM 0
Link

@Oleksandr Skoryi , What do mean message id , Apigee message processor id ?

avatar image GargiTalukdar   · Apr 19, 2016 at 01:53 PM 0
Link

@Oleksandr Skoryi, please verify if the CacheKey and Scope is same in all the three policies.

avatar image Esteban Lartigue · Feb 17 at 10:07 PM 0
Link

messageId and UUIDfrom cache can be different.

Close

0 Answers

  • Sort: 

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I check the content of cache 1 Answer

Clearing cache for everyone without Management API 1 Answer

Does cache renew expiration time when I get value from it? 2 Answers

what is the alternative for response cache in apigee for extra size response data(size is above 512 kb)? 2 Answers

Get and parse String from cache to JSON 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges