作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (19): 68-70. doi: 10.3969/j.issn.1000-3428.2006.19.025

• 软件技术与数据库 • 上一篇    下一篇

基于LRU算法的Web系统缓存机制

张震波,杨鹤标,马振华   

  1. (江苏大学计算机科学与通信工程学院,镇江 212013)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-10-05 发布日期:2006-10-05

Web Cache Mechanism Based on LRU Algorithm

ZHANG Zhenbo, YANG Hebiao, MA Zhenhua   

  1. (School of Computer Science & Communication Engineering, Jiangsu University, Zhenjiang 212013)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-10-05 Published:2006-10-05

摘要: 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

中图分类号: