Sorry for the wrong category, next time it will be under runtime framework.
I wasn't able to implement the solution you suggested and I suppose that this is because of my lack of knowledge of the framework. Unfortunately the need is urgent. So what we had until now was like the following:
        ProductCollection listOfProducts = new ProductCollection();
        IPredicateExpression selectFilter = new PredicateExpression();
        selectFilter.AddWithAnd(ProductFields.Deleted == false);
        .......
        listOfProducts.GetMulti(selectFilter, 0L, sort, relations);
(where ProductCollection extends EntityCollectionBase)
I tried to add this piece of code before the GetMulti call.
	  QueryFactory qf = new QueryFactory();
	  DynamicQuery dq = qf.Create().Select(selectFilter).CacheResultset(100);
But I couldn't call GetMulti with a parameter of type DynamicQuery. I thought that I saw in the documentation that this was possible.
What has to be changed in this code so that we can store the results in the cache?
Thanks in advance.