cache is very useful in improving the response speed.
The concept of keeping a copy of an object in the memory, in some form,
with the goal of providing a faster response time to a client request is called
caching. This is often done when the construction of a new object is expensive
in terms of the processing involved. The object in the memory is not kept in the
memory forever. Maintaining a large number of objects for a long time could
have a negative effect on the application’s performance. A strategy must be
developed to decide on the optimal number of objects to be cached and how
long these objects are to be kept in the memory. Such decisions constitute the
cache management strategy.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16792402/viewspace-584296/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16792402/viewspace-584296/