cache searching

Hi all,

What is the best way to search data in a cache ?

I run a cache reader component and added a custom filter to query.

I'd like to optimize this part : is it possible to read cache and stop reading when required data is found ?

And how do you search / filter on a list of values ?

Thanks

Christophe