1 Unstar Star 0 Fork 142

xiaocaimi / cache-framework

forked from 开源中国 / cache-framework 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

cache-framework

OSChina 缓存框架重构

采用二级缓存结构

L1: 进程内缓存(ehcache) L2: 集中式缓存,支持多种集中式缓存服务器,如 Redis、Memcached 等

由于大量的缓存读取会导致 L2 的网络成为整个系统的瓶颈,因此 L1 的目标是降低对 L2 的读取次数

网络拓扑结构

     A1(L1_1)

Web - - L2 - DB A2(L1_2)

*** 数据读取 ***

  1. 读取顺序 -> L1 -> L2 -> DB

  2. 数据更新

A1 从数据库中读取最新数据,依次更新 L1_1 -> L2 ,广播清除某个缓存信息 A2 接收到广播,从 L1_2 中清除指定的缓存信息

Comments ( 0 )

Sign in for post a comment

About

OSChina 缓存框架 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/takeshineshiro/cache-framework.git
git@gitee.com:takeshineshiro/cache-framework.git
takeshineshiro
cache-framework
cache-framework
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542