如果用这些参数计算散列键,则很容易在缓存中找到同一视图的旧版本。
If the hash key is calculated from those parameters, previously generated versions of the same view can be retrieved easily from the cache.
由于处理器与请求者和参数无关,缓存散列键就可以仅由HTTP的action参数值组成。
Because the processor is independent of the requestor and the parameters, the hash key for caching simply can be composed of the value of the action HTTP parameter.
在清单5中,我们在调用期间动态地构建了数组引用,然后在打印结果时使用OID作为散列键。
In Listing 5 we build the array reference dynamically during the call, and then use the OID as the hash key when printing out the result.
应用推荐