Index: src/site/samples/localstorage/example/README |
diff --git a/src/site/samples/localstorage/example/README b/src/site/samples/localstorage/example/README |
new file mode 100644 |
index 0000000000000000000000000000000000000000..688b4a1a873b15c3615cd3762e4464225e13df16 |
--- /dev/null |
+++ b/src/site/samples/localstorage/example/README |
@@ -0,0 +1,17 @@ |
+Local Storage is a simple key/value storage interface |
+for Strings. Use Dart's local storage interface as a |
+Map. |
+ |
+See also: |
+ |
+* http://api.dartlang.org/docs/continuous/dart_html/Storage.html |
+* https://developer.mozilla.org/en-US/docs/DOM/Storage |
+* http://diveintohtml5.info/storage.html |
+ |
+Note, local storage, though widely supported, is a |
+synchronous API. Because it involves IO, this interface |
+should not be used for high throughput operations. |
+You might consider IndexedDB as an alternative. |
+ |
+For simple string keys and values, and as a replacement |
+for cookies, local storage is useful. |