计算机科学 ›› 2017, Vol. 44 ›› Issue (2): 82-87.doi: 10.11896/j.issn.1002-137X.2017.02.010

• 2016 第十三届全国Web 信息系统及其应用学术会议 • 上一篇    下一篇

HTML5混合式移动社交应用中缓存管理机制的研究

仲媛,王菁,韩燕波,邢起源   

  1. 北方工业大学云计算研究中心 北京100144大规模流数据集成与分析技术北京市重点实验室 北京100144,北方工业大学云计算研究中心 北京100144大规模流数据集成与分析技术北京市重点实验室 北京100144,北方工业大学云计算研究中心 北京100144大规模流数据集成与分析技术北京市重点实验室 北京100144,北方工业大学云计算研究中心 北京100144大规模流数据集成与分析技术北京市重点实验室 北京100144
  • 出版日期:2018-11-13 发布日期:2018-11-13
  • 基金资助:
    本文受北京市自然科学基金重点资助

Cache Management Mechanism Study in HTML5 Hybrid Mobile Social Applications

ZHONG Yuan, WANG Jing, HAN Yan-bo and XING Qi-yuan   

  • Online:2018-11-13 Published:2018-11-13

摘要: 随着移动互联网的发展,混合式开发作为一种快速开发的方式已经成为一种趋势,这种方式既可以体现Web应用可以同时适用于IOS平台和Android平台的特点,又能解决Web应用中不能调用操作系统底层资源的问题。当今社交类应用中普遍存在大量的图片,重复图片从服务器多次存取会消耗客户端流量、增加访问延迟,当今混合式开发框架中的缓存机制并不能解决这个问题。因此提出一个可以适用于混合式移动社交应用的图片缓存管理机制,提供缓存图片管理的原生模块供开发者在混合模式下使用,并将其应用于社交应用中。同时提出了一种基于社交关系的图片缓存替换算法,该算法结合了社交应用中用户之间的社交关系亲密值、LRU算法、图片占用空间大小。实际应用表明,该算法可以提高混合式移动社交应用中的缓存命中率。

关键词: 混合式应用,缓存,移动社交,移动应用

Abstract: With the development of the mobile Internet,the hybrid development,as a way of rapid development,has become a trend.This approach can not only reflect the characteristics of Web applications which is both suitable for IOS and Android platform,but also can solve the problem which the web application cannot call the underlying resources of operating system.Nowadays,social application generally have a large number of pictures,When duplicate pictures accessed multiple times from server,it will consume client flow and increase the latency of access.However,today’s cache mechanism of hybrid application development frameworks can not solve the problem described above.So,this paper proposed a management mechanism of picture cache which is suitable for mixing mobile social applications,it provides a native module of picture cache management for use by developers in hybrid mode,and it can be used in social applications.Meanwhile,we put forward an algorithm of picture cache replacement based on social relationships.It considers enough influence factors,including close value of social relationships among users in social applications,the LRU algorithm,image size space.Practical application shows that the algorithm we proposed can increase the cache hit ratio of hybrid mobile social applications.

Key words: Hybrid application,Cache,Mobile social,Mobile application

[1] Ariel.App Stores Growth Accelerates in 2014.http://blog.appfigures.com/app-stores-growth-accelerates-in-2014.
[2] DoNews .TalkingData-2015移动社交应用行业报告 .http://www.donews.com/net/201507/2896716.shtm.
[3] LIU W X,YU S Z,CAI J,et al.Scheme for Cooperative Caching in ICN[J].Journal of Software,2013,24(8):1947-1962 .(in Chinese) 刘外喜,余顺争,蔡君,等.ICN中的一种协作缓存机制[J].软件学报 ,2013,4(8):1947-1962.
[4] BOYAR J,GUPTA S,LARSEN K S.Access Graphs Results for LRU versus FIFO under Relative Worst Order Analysis[C]∥Scandinavian Conference on Algorithm Theory.Springer-Verlag,2012:328-339
[5] TANWIR,HENDRANTORO G,AFFANDI A.Early resultfrom adaptive combination of LRU,LFU and FIFO to improve cache server performance in telecommunication network[C]∥Intelligent Technology and Its Applications (ISITIA),2015 International Seminar.2015:429-432.
[6] LIU L,XIONG X P.Least cache value replacement algorithm[J].Journal of Computer Applications,2013,33(4):1018-1022.(in Chinese) 刘磊,熊小鹏.最小驻留价值缓存替换算法[J].计算机应用,2013,33(4):1018-1022.
[7] LIANG R B,LIU Q.Research on Semantic Cache Consistency Maintenance in Mobile Environments Based on Agent Method[J].Journal of Beijing University of Posts and Telecommunications,2014,7(3):68-72.(in Chinese) 梁茹冰,刘琼.移动环境中语义缓存一致性维护的Agent方法[J].北京邮电大学学报,2014,7(3):68-72.
[8] SUN Y L.The Research of the Memory Management Optimization Method for Android Application Development[D].Wuhan:Wuhan University of Technology,2014.(in Chinese) 孙岳龙.Android 应用开发中内存管理优化方法的研究[D].武汉:武汉理工大学,2014.
[9] TAN G J.Key Technology Research of Mobile Internet Applications Based on Android[D].Guangzhou:South China University of Technology,2014.(in Chinese) 谭国坚.基于 Android 的移动互联网应用的关键技术研究[D].广州:华南理工大学,2014.
[10] XING Q Y.A User-Relationship-Based Cache ReplacementStrategy for Mobile Social Network[C]∥2015 Ninth International Conference on Frontier of Computer Science and Techno-logy.2015.
[11] CAO Y,CHEN H F.Operation-Balancing Framework Based on JSON,JavaScrip and Front-end Storage Technology[J].Research and Exploration in Laboratory,2014,3(5):117-119.(in Chinese) 曹宇,陈海峰.基于JSON、JavaScript、HTML5和前端存储技术的均衡运算框架[J].实验室研究与探索,2014,3(5):117-119.
[12] HUANG Y F.Exploration of HTML5 WebStorage API and.NET Mechanism[J].Computer Knowledge and Technology,2013,9(9):2102-2104.(in Chinese) 黄有福.HTML5 WebStorage API与.NET会话机制探索[J].电脑知识与技术,2013,9(9):2102-2104.
[13] LUO D H,CHEN J.Research and Implementation of HTML5-Based Web Offline Application[J].Computer Applications and Software,2012,9(12):263-305.(in Chinese) 罗大晖,陈娟.基于HTML5的Web离线应用研究与实现[J].计算机应用与软件,2012,9(12):263-305.
[14] ZHENG Y.Research and Application of HTML5 Local Storage and Offline Caching Mechanisms[D].Wuhan:Wuhan University of Technology,2014.(in Chinese) 郑艳.HTML5本地存储和离线缓存机制应用研究[D].武汉:武汉理工大学,2014.
[15] TIAN L,DU H C,TANG L.The discussion of cross-platform mobile application based on Phonegap[C]∥Proceedings of 2013 IEEE 4th International Conference on Software Engineering and Service Science.2013:652-655.

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!