HTML5 – Storage

Introduction

In Browser Context, it provide three ways for storing data.

  • Local Storage, a simple key/value persistence system.
  • WebSQL, deprecated relational database.
  • IndexedDB, a NoSQL database

 

Local Storage

  • a simple key/value persistence system.
  • before HTML5, application data had to store in cookies.
  • more secure and larger storage limit.
  • per domain and protocol. i.e. All page from same domain can access the same data.

 

WebSQL

  • Basically, SQLite, a light relational database, embedded in browser.
  • Deprecated Specification

 

IndexedDB

  • a NoSQL database, a Javascript-based object-oriented database that object is retrieved by indexed key.

 

Reference:

Advertisements

One thought on “HTML5 – Storage

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s