摘要: Web系统嵌入缓存机制将被访问的对象保存在内存缓冲区中,在频繁创建和销毁对象时,降低了系统开销、提高了系统的整体快速响应能力、避免了频繁的数据交互。该文分析了Cache技术的设计原理和实现策略、LRU算法的设计模式,构造了缓存机制的基本框架。
关键词:
J2EE,
LRU算法,
缓存机制,
设计模式
Abstract: The cache mechanism of Web system that stores object in the memory buffer, lowers the systematic expenses produced by frequently creation and destruction of the object, avoids frequently data exchange with database and improves the fast response ability of system. By analyzing the design and implementation principle of cache, the cache framework based on J2EE with LRU algorithm is implemented.
Key words:
J2EE,
LRU arithmetic,
Cache mechanism,
Design patterns
中图分类号:
张震波;杨鹤标;马振华. 基于LRU算法的Web系统缓存机制[J]. 计算机工程, 2006, 32(19): 68-70.
ZHANG Zhenbo; YANG Hebiao; MA Zhenhua. Web Cache Mechanism Based on LRU Algorithm[J]. Computer Engineering, 2006, 32(19): 68-70.