APICloud緩存機(jī)制的擴(kuò)展研究與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-12-19 08:46
【摘要】:隨著移動(dòng)互聯(lián)網(wǎng)的發(fā)展,混合式開(kāi)發(fā)作為一種快速開(kāi)發(fā)方式已經(jīng)成為一種趨勢(shì),這種方式既可以體現(xiàn)Web應(yīng)用同時(shí)適用iOS和Android平臺(tái)的特點(diǎn),又能解決Web應(yīng)用不能調(diào)用操作系統(tǒng)底層資源的問(wèn)題。當(dāng)今移動(dòng)社交應(yīng)用發(fā)展迅速,使用率、安裝率遠(yuǎn)高于其他類(lèi)應(yīng)用。然而社交應(yīng)用中普遍存在大量的圖片、視頻等文件資源,這些文件資源從服務(wù)器多次存取存在消耗客戶端流量、增加訪問(wèn)延遲的問(wèn)題。針對(duì)社交應(yīng)用,用戶的社交關(guān)系對(duì)緩存使用頻率有一定影響,因此本文提出一個(gè)基于社交關(guān)系的緩存替換算法,對(duì)其緩存效率進(jìn)行分析。同時(shí)結(jié)合該算法提出一個(gè)適用于混合式移動(dòng)社交應(yīng)用的圖片緩存管理機(jī)制,社交應(yīng)用使用該緩存機(jī)制,可以更有針對(duì)性地進(jìn)行緩存,提高移動(dòng)應(yīng)用的緩存效率和緩存命中率,減少數(shù)據(jù)流量和網(wǎng)絡(luò)資源的浪費(fèi)。APICloud作為一個(gè)國(guó)內(nèi)領(lǐng)先的混合式移動(dòng)開(kāi)發(fā)平臺(tái),現(xiàn)如今并沒(méi)有提供緩存管理的模塊,因此本文結(jié)合社交應(yīng)用緩存機(jī)制在APICloud平臺(tái)下設(shè)計(jì)并實(shí)現(xiàn)一個(gè)圖片管理的緩存模塊,供開(kāi)發(fā)者在混合模式下使用。本文的主要工作包括:1.提出了一種基于社交關(guān)系的圖片緩存替換算法,該算法結(jié)合社交應(yīng)用中用戶之間的社交關(guān)系親密度、圖片訪問(wèn)頻率、圖片占用空間大小進(jìn)行緩存替換。2.設(shè)計(jì)并開(kāi)發(fā)一個(gè)符合APICloud模塊開(kāi)發(fā)規(guī)范的緩存模塊,將基于社交關(guān)系的緩存替換算法應(yīng)用到該模塊中,使模塊可以通過(guò)JavaScript調(diào)用,支持iOS和Android系統(tǒng)。3.基于APICloud平臺(tái)開(kāi)發(fā)一個(gè)移動(dòng)社交應(yīng)用,該應(yīng)用中存在大量圖片,應(yīng)用包括關(guān)注、收藏、點(diǎn)贊、評(píng)論、私信等社交功能,在該應(yīng)用中運(yùn)用社交緩存模塊,實(shí)現(xiàn)對(duì)應(yīng)用中圖片緩存的管理。4.通過(guò)實(shí)驗(yàn)?zāi)M該算法緩存替換流程,計(jì)算并分析算法的緩存效率,實(shí)驗(yàn)表明,本文提出的緩存替換算法可以提高緩存命中率。
[Abstract]:With the development of mobile Internet, hybrid development, as a rapid development method, has become a trend, which can not only reflect the characteristics of iOS and Android platform, but also reflect the characteristics of Web application. It can also solve the problem that Web application can not call the underlying resources of operating system. Today's mobile social apps are growing rapidly, using and installing much more than other apps. However, there are a lot of file resources such as pictures, videos and so on in social applications. The problem of consuming client traffic and increasing access delay occurs when these file resources are accessed from the server many times. For social applications, the social relationship of users has a certain impact on the frequency of cache usage, so this paper proposes a cache replacement algorithm based on social relations and analyzes its cache efficiency. At the same time, an image cache management mechanism for hybrid mobile social application is proposed, which can improve the cache efficiency and cache hit rate of mobile application. Reduce data traffic and waste of network resources. APICloud, a leading hybrid mobile development platform in China, does not now offer a cache management module. Therefore, this paper designs and implements a picture management cache module based on APICloud platform, which can be used by developers in mixed mode. The main work of this paper includes: 1. A new image cache replacement algorithm based on social relationship is proposed. The algorithm combines the social relationship affinity between users, the frequency of picture access, and the size of picture space. 2. This paper designs and develops a cache module that conforms to the APICloud module development specification, and applies the cache replacement algorithm based on social relations to the module. The module can be called by JavaScript and can support iOS and Android system. Based on APICloud platform, a mobile social application is developed. There are a lot of pictures in the application. The application includes social functions such as attention, collection, likes, comments, private letter and so on. Implementation of the application of the image cache management. 4. The cache replacement flow is simulated experimentally and the cache efficiency is calculated and analyzed. The experiment shows that the cache replacement algorithm proposed in this paper can improve the cache hit rate.
【學(xué)位授予單位】:北方工業(yè)大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2017
【分類(lèi)號(hào)】:TP393.09
[Abstract]:With the development of mobile Internet, hybrid development, as a rapid development method, has become a trend, which can not only reflect the characteristics of iOS and Android platform, but also reflect the characteristics of Web application. It can also solve the problem that Web application can not call the underlying resources of operating system. Today's mobile social apps are growing rapidly, using and installing much more than other apps. However, there are a lot of file resources such as pictures, videos and so on in social applications. The problem of consuming client traffic and increasing access delay occurs when these file resources are accessed from the server many times. For social applications, the social relationship of users has a certain impact on the frequency of cache usage, so this paper proposes a cache replacement algorithm based on social relations and analyzes its cache efficiency. At the same time, an image cache management mechanism for hybrid mobile social application is proposed, which can improve the cache efficiency and cache hit rate of mobile application. Reduce data traffic and waste of network resources. APICloud, a leading hybrid mobile development platform in China, does not now offer a cache management module. Therefore, this paper designs and implements a picture management cache module based on APICloud platform, which can be used by developers in mixed mode. The main work of this paper includes: 1. A new image cache replacement algorithm based on social relationship is proposed. The algorithm combines the social relationship affinity between users, the frequency of picture access, and the size of picture space. 2. This paper designs and develops a cache module that conforms to the APICloud module development specification, and applies the cache replacement algorithm based on social relations to the module. The module can be called by JavaScript and can support iOS and Android system. Based on APICloud platform, a mobile social application is developed. There are a lot of pictures in the application. The application includes social functions such as attention, collection, likes, comments, private letter and so on. Implementation of the application of the image cache management. 4. The cache replacement flow is simulated experimentally and the cache efficiency is calculated and analyzed. The experiment shows that the cache replacement algorithm proposed in this paper can improve the cache hit rate.
【學(xué)位授予單位】:北方工業(yè)大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2017
【分類(lèi)號(hào)】:TP393.09
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 ;CNNIC發(fā)布第39次《中國(guó)互聯(lián)網(wǎng)絡(luò)發(fā)展?fàn)顩r統(tǒng)計(jì)報(bào)告》[J];中國(guó)信息安全;2017年02期
2 陳思;徐晨飛;;基于APICloud的“校園健身達(dá)人”APP設(shè)計(jì)與實(shí)現(xiàn)[J];電腦知識(shí)與技術(shù);2016年22期
3 周欣欣;盧U,
本文編號(hào):2386687
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2386687.html
最近更新
教材專(zhuān)著