创建新话题
已回答

Cached Items

Hi,


I found in the API description, that the "SystemWeaver.Common.IswBroker.GetItem" method is "[Not cached]"...


What does it exactly means?

It will not search for this item in the local cache, and every "GetItem" call will get the item directly from the server?


Thank you


最佳答案

Hi Tibor,


All the SystemWeaver.Common.IswBroker.Get* methods with the [Not cached] comment do cache the information on the client side if there is an object with the given id.

[Not cached] indicates that if the response from the server is that there is no object with that id, no information about that query will be stored locally. In practice this means that if you repeatedly ask for the same object which does not exist on the server, every query will be sent to the server. This may put an unnecessary load on the server if done irresponsibly.


Best regards,

Fredrik


1 Comment

回答

Hi Tibor,


All the SystemWeaver.Common.IswBroker.Get* methods with the [Not cached] comment do cache the information on the client side if there is an object with the given id.

[Not cached] indicates that if the response from the server is that there is no object with that id, no information about that query will be stored locally. In practice this means that if you repeatedly ask for the same object which does not exist on the server, every query will be sent to the server. This may put an unnecessary load on the server if done irresponsibly.


Best regards,

Fredrik


登录 发表评论