Deletes everything in cache.
true
Call function f on the specified context for each element of the storage from index 0 to index length-1. WARNING : You should not modify the storage during the loop !!!
Function to call on every item.
Context (this for example).
Number of items in storage
Looks up a key in cache
Key to look up.
Default value to return, if key didn't exist.
the key value, default value or
Deletes a key from cache.
Key to delete.
true if key existed or false if it didn't
Sets a key's value.
Key to set. If this value is not set or not a string an exception is raised.
Value to set. This can be any value that is JSON compatible (Numbers, Strings, Objects etc.).
the stored value which is a container of user value.
How much space in bytes does the storage take?
Number
Generated using TypeDoc
localStorage class factory Usage : var LocalStorage = fidj.LocalStorageFactory(window.localStorage); // to create a new class Usage : var localStorageService = new LocalStorage(); // to create a new instance