Hi

On Tue, Aug 30, 2011 at 11:15 AM, David Riccitelli
<[email protected]> wrote:
> Hi Rupert,
>>
>> Queries are not supported by "caches". (cache strategy "used")
>> Only if you use local index (cache strategy "all") also queries are
>> exceeded on the locally available data.
>
> What is the all behaviour? Is it like:
>  [1] check into cache,
>  [2] return cache,
>  [3] if not found in cache, retrieve online,
>  [4] in cache

This is exactly how it works for requests for Entities by ID and Cache
Strategy "used".

For Queries the cache is not used (if Cache Strategy "used" is
configured). Queries are always forwarded to the remote Site, because
executing a query a partially locally cached dataset would not provide
the complete result set.

In case of  Cache Stragegy "all" than the remote service are only used
as fallback if of the local cache is not available of throws an
Exception.

So in case of a request for an Entity by ID it would return a 404 if
it is not locally cached. I case of a query it would perform the query
on the locally cached entities only.

best
Rupert Westenthaler


-- 
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to