alanjames1987 / marilyn

Marilyn is a client side, Socket.IO driven, Pub/Sub, model layer with a query system similar to Mongoose.
MIT License
114 stars 3 forks source link

Feature: Add Persistence Storage #7

Open alanjames1987 opened 9 years ago

alanjames1987 commented 9 years ago

Records could be stored in the browser using the localStorage object.

alanjames1987 commented 9 years ago

I might need to add datatype conversion to add this feature as the localStorage can only save strings.

alanjames1987 commented 9 years ago

This should actually be done using IndexedDB as it is designed for this job. localStorage should be used as a fallback if IndexedDB is not fully supported.