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

sprucemedia/spine.kache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Spine model caching with kache.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.0%
  • CoffeeScript 18.4%
  • Ruby 1.6%