Clear particular cache

I have a proxy to populate cache using cachekey.Then i trigger multiple request of same cachekey but different data. So all data stored in the form of array. My question is how delete a particular data of same cachekey in that cache. Thanks. @Dino-at-Google can you help me out in this please.

0 3 128
3 REPLIES 3

Why are you wanting to delete some of the data you've cached? It seems like this may be a use case not for cache, or perhaps should be cached with a more granular key?

if two people are tyring to cache using same cachekey but with different data, when the try to retrieve data they are not getting the data which they have cached.

i trigger multiple request of same cachekey but different data. So all data stored in the form of array.

Not clear.

how delete a particular data of same cachekey in that cache.

Have you seen the documentation? There is an InvalidateCache policy. It deletes cache entries. This sounds like what you want.

You can also overwrite entries in the cache using the PopulateCache policy.

Either of these will "delete" the existing cache entry. The latter will replace the existing entry with something different.