if there is a way to skip caching in L2

Not applicable

i.e. cache/check only L1 and if none proceed the "normal" way?

1 1 231
1 REPLY 1

amitkumar2091
Participant III

Hi ,

I am not sure on this , but apigee uses ehcache. According to their docs ( http://www.ehcache.org/documentation/2.8/configuration/fast-restart.html ) for version 2.5 and earlier , in memory cache can be achieved with overflowToDisk="false"

So i guess while creating cache you can use

{
  "description": "{cache_description}",
  "expirySettings": {
    "expiryDate": {
      "value": "{mm-dd-yyyy}"
    },
    "valuesNull": "{false}"
  },
  "overflowToDisk": "{false}",
  "skipCacheIfElementSizeInKBExceeds": "{num_elements}"
}

This should disable L2 cache for apigee.

Doc Ref :

https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_nam...

https://docs.apigee.com/api-platform/cache/cache-internals