Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 672 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 672 Bytes

Spine.Kache - Caching Spine Models

Kache leverages HTML5 localStorage when available and falls back to an in-browser object store when it isn't. Leveraging Kache in Spine allows you to make use of:

  • Namespaces
  • Namespace prefix support
  • Flexible timeout definitions
  • localStorage with an in-memory fallback

Usage

User = Spine.Model.setup("User", ["name"]);
User.extend(Spine.Model.Kache);
User.create({name: "Jason"});

At this point take a look in localStorage and you'll see your users.