这够简单的了,但是请考虑一下:您将这些已高速缓存的项保存多久以及其他客户机将多久调用一次这个Web服务?
Simple enough, but consider this: how long do you keep these cached items around, and how often are other clients going to call the web service?
第一次检查主要是看是否已经在静态HOMES Map中缓存了主机接口,只有打开了高速缓存才能使用默认Context。
The first check is to see if the home interface is already cached in the static HOMES Map only if caching is turned on and the default Context is being used.
高速缓存连接通过避免与数据库连接的时间(除了第一次)减少了设置时间。
Caching the connection reduces the setup time by avoiding the time to connect to the database (except for the first time).
应用推荐