基于Redis的結(jié)構(gòu)化數(shù)據(jù)緩存系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)
[Abstract]:With the continuous expansion of the data scale and the sharp increase of the number of users, the traditional structured database access is facing more and more pressure. Improving the reading and writing performance of structured databases such as MySQL becomes a problem to be solved urgently. Redis memory database puts all data in memory for management, which greatly improves the performance of data access and is suitable for data cache management. It is of great theoretical significance and practical value to design a cache strategy in Redis to realize the cache of structured data in order to reduce the access pressure of MySQL database and improve the performance of reading and writing. Based on the deep analysis of the data characteristics and access process of structured data, the structure of structured database and proxy server is used, and the Redis memory database is deployed on the proxy server. A cache system for structured data is designed and implemented on Redis. In order to solve the problem that part of the query result set is too large, a prefix caching method based on the behavior of user query frequency, read / write ratio and so on is designed, in which only the prefix part of data is cached in the cache block. When the actual demand of the user increases, the cache block is expanded immediately to supplement the data required by the user; when the user needs the block data to be reduced, the inert update scheme is adopted to set the mark to be updated. When waiting for memory shortage, compression of memory space is unified. This method can not only better meet the needs of users, but also release a large amount of memory space when memory is out of capacity, thus reducing the probability of cache replacement. When the cache space is insufficient, the system also proposes an adaptive cache replacement algorithm for query result set type. The Hybrid replacement algorithm is improved and combined with the LFU replacement algorithm to better meet the actual needs of structured data cache. Based on the actual query requirements of users, the system makes full use of the good read and write performance of Redis memory database, and makes more efficient use of memory space, thus improving the performance of the cache system. The experimental results show that the system improves the number of cache blocks by prefix cache strategy and cache block compression scheme, thus improving the hit rate of cache and the hit rate of bytes. It has certain application value.
【學(xué)位授予單位】:華中科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2016
【分類號】:TP311.13
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 陽振坤;;OceanBase關(guān)系數(shù)據(jù)庫架構(gòu)[J];華東師范大學(xué)學(xué)報(bào)(自然科學(xué)版);2014年05期
2 曹丹丹;樂嘉錦;夏小玲;;Redis數(shù)據(jù)庫在視頻推薦服務(wù)系統(tǒng)中的應(yīng)用[J];計(jì)算機(jī)與現(xiàn)代化;2013年10期
3 劉高軍;王帝澳;;基于Redis的海量小文件分布式存儲方法研究[J];計(jì)算機(jī)工程與科學(xué);2013年10期
4 曾超宇;李金香;;Redis在高速緩存系統(tǒng)中的應(yīng)用[J];微型機(jī)與應(yīng)用;2013年12期
5 謝華成;陳向東;;面向云存儲的非結(jié)構(gòu)化數(shù)據(jù)存取[J];計(jì)算機(jī)應(yīng)用;2012年07期
6 尤朝;周明輝;林泊;曹東剛;梅宏;;一種在線的動態(tài)網(wǎng)頁分塊緩存方法[J];電子學(xué)報(bào);2009年05期
7 楊春貴;吳產(chǎn)樂;彭鴻雁;;一種有效的Web代理緩存替換算法[J];計(jì)算機(jī)工程;2007年03期
8 張超群,李陶深,張?jiān)龇?代理緩存一致性策略和替換策略的研究[J];計(jì)算機(jī)工程與設(shè)計(jì);2005年11期
9 楊武軍,張繼榮,屈軍鎖;內(nèi)存數(shù)據(jù)庫技術(shù)綜述[J];西安郵電學(xué)院學(xué)報(bào);2005年03期
10 涂小朋;汪林林;;分布式空間數(shù)據(jù)庫中基于事務(wù)的客戶端高速緩存技術(shù)研究[J];計(jì)算機(jī)科學(xué);2004年06期
相關(guān)博士學(xué)位論文 前2條
1 霍龍社;互聯(lián)網(wǎng)流媒體傳輸關(guān)鍵技術(shù)研究[D];中國科學(xué)院研究生院(計(jì)算技術(shù)研究所);2006年
2 高奎;實(shí)時(shí)流媒體系統(tǒng)若干關(guān)鍵技術(shù)的研究[D];中國科學(xué)院研究生院(計(jì)算技術(shù)研究所);2005年
相關(guān)碩士學(xué)位論文 前6條
1 許光軍;內(nèi)容中心網(wǎng)絡(luò)緩存放置策略研究[D];北京郵電大學(xué);2015年
2 萬里鵬;非結(jié)構(gòu)化到結(jié)構(gòu)化數(shù)據(jù)轉(zhuǎn)換的研究與實(shí)現(xiàn)[D];西南交通大學(xué);2013年
3 謝海洋;面向分布式數(shù)據(jù)庫的自適應(yīng)多級緩存機(jī)制研究[D];華中科技大學(xué);2013年
4 詹盛輝;失效盤優(yōu)先的高速緩存替換方案的設(shè)計(jì)與實(shí)現(xiàn)[D];華中科技大學(xué);2013年
5 狄剛;HTTP實(shí)現(xiàn)代理服務(wù)器及緩存替換算法的研究[D];吉林大學(xué);2010年
6 孔峰;流媒體代理服務(wù)器緩存研究與實(shí)現(xiàn)[D];北京郵電大學(xué);2009年
,本文編號:2231614
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/2231614.html