框架存储数据客户端 [英] Frameworks to store data client side

查看:190
本文介绍了框架存储数据客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何框架或API来存储数据的客户端方便,通过用户的会话过程中从数据库中取出,?我正在寻找任何框架,让我不要有,也许在乎与否的浏览器支持的localStorage 或其它存储技术和放大器;我可以无缝地存储数据!?

有关我个人的使用情况下,我需要能够以通为用户放大器推荐项目未筛选列表;除去他已经加入到他的列表中的人。欲存储用户的列表的客户端,然后过滤unadded项


解决方案

看一看 YUI的StorageUtility 。 YUI的StorageUtility是一个很好的抽象


  

    

存储实用工具提供存储显著大量文本数据,客户端的机制,不管是不是你的浏览器
    支持所提出的HTML 5存储规范。


    
    

存储实用工具的每个实例利用三种存储的一个
    发动机以存储数据


    
    

HTML 5 :如果客户端浏览器支持HTML 5,那么这个引擎会
    包浏览器本地存储能力(document.localStorage
    和document.sessionStorage)。结果
        谷歌齿轮:谷歌Gears是一个浏览器
    扩展,用户可以安装自己的机器上。它的特点之一
    是SQLite数据库;存储实用工具使用该数据库
    使用齿轮引擎时,客户端存储。结果
       SWF :YUI提供
    该标准化访问闪存共享对象SWFStore实用程序。
    这是存储工具的备用引擎,这将在大多数工作
    由于Adobe Flash插件的显著渗透浏览器。


  

Are there any frameworks or API to store data client side conveniently, by transferring from database, during user's session ? I'm looking for any framework so that I dont have to, perhaps, care about whether or not the browser support LocalStorage or other storage technologies & I can seamlessly store data!?

For my personal use case, I need to be able to pass an unfiltered list of recommended items for user & remove the ones he has added to his lists. I want to store the user's lists client side and then filter the unadded items.

解决方案

Have a look at YUI's StorageUtility. The YUI StorageUtility is a nice abstraction

The Storage Utility provides a mechanism for storing significant amounts of textual data, client-side, whether or not your browsers supports the proposed HTML 5 Storage specification.

Each instance of the Storage Utility leverages one of three storage engines in order to store data:

HTML 5: If the client browser supports HTML 5, then this engine will wrap the browser's native storage capability (document.localStorage and document.sessionStorage).
Google Gears: Google Gears is a browser extension that users can install on their machine. One of its features is a SQLite database; the Storage Utility uses this database for client-side storage when using the Gears engine.
SWF: YUI provides a SWFStore Utility that normalizes access to the Flash Shared Object. This is the Storage Utility's fallback engine, which will work on most browsers due to the significant penetration of the Adobe Flash plugin.

这篇关于框架存储数据客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆