Cache in Apigee, What happens with the expired cache that are not deleted?

Hi, I'm creating UserSessions in apigee as Cache elements.

I'm curious what happens if I never delete those cache.

I'm assuming they will expire in expiration time. but what happens next?

are they going to be removed from Apigge or Cassandra at some point? who does that?

will this be a problem?

thanks

Solved Solved
0 4 313
1 ACCEPTED SOLUTION

Yes, when the TTL expires, cache elements are ejected from the cache. That includes the in-memory cache and the L2 cache (Cassandra-backed). This happens automatically.

I don't think it will be a problem; that's how the cache is supposed to work. but I'm not sure what you mean with your question!

View solution in original post

4 REPLIES 4

Yes, when the TTL expires, cache elements are ejected from the cache. That includes the in-memory cache and the L2 cache (Cassandra-backed). This happens automatically.

I don't think it will be a problem; that's how the cache is supposed to work. but I'm not sure what you mean with your question!

Thank you! great to know!!!

In my mind I assumed the caches were something like a key, map in cassandra.

I was curious what would happen for all of those objects I'm creating and not deleting them.

not sure if it was going to have memory implications or something,

but based on your answer it seems that by default Apigee is removing those when they are expired.

Does apigee's invalidate cache policy also removes the cache entry from the cache DB ?

I am also concerned about memory implication of invalidated cache entries.

yes, once the cache is invalidated it gets removed.