<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>async | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/tag/async/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Wed, 25 Nov 2009 13:04:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>lawnchair &#8211; a client side JSON document store</title>
		<link>https://nerdpress.org/2009/11/25/lawnchair-a-client-side-json-document-store/</link>
					<comments>https://nerdpress.org/2009/11/25/lawnchair-a-client-side-json-document-store/#comments</comments>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 13:04:01 +0000</pubDate>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[async]]></category>
		<category><![CDATA[couch]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Lawnchair]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=618</guid>

					<description><![CDATA[<p>Sorta like a couch except smaller and outside JSON Daten clientseitig speichern und verfügbar halten. &#8220;stores&#8221; nennt Lawnchair das dann. Eigentlich ähnlich wie bei Propel und co. Nur halt ohne DB. ich würde sagen die Syntax spricht in dem Fall für sich selbst:</p>
The post <a href="https://nerdpress.org/2009/11/25/lawnchair-a-client-side-json-document-store/">lawnchair – a client side JSON document store</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<blockquote><p>Sorta like a couch except smaller and outside</p></blockquote>
<p>JSON Daten clientseitig speichern und verfügbar halten. </p>
<p>&#8220;stores&#8221; nennt <a href="http://brianleroux.github.com/lawnchair/">Lawnchair</a> das dann.<br />
Eigentlich ähnlich wie bei Propel und co. Nur halt ohne DB.</p>
<p>ich würde sagen die Syntax spricht in dem Fall für sich selbst:<span id="more-618"></span></p>
<pre class="brush: jscript; title: ; notranslate">
var people = new Lawnchair(&#039;people&#039;);



// Saving a document
var me = {name:&#039;brian&#039;};
people.save(me);
 
 
// Saving a document async
people.save({name:&#039;frank&#039;}, function(r) {
    console.log(r);
});
 
 
// Specifying your own key
people.save({key:&#039;whatever&#039;, name:&#039;dracula&#039;});



// Get that document
people.get(me.key, function(r){
    console.log(r);
});
 
 
// Returns all documents as an array to a callback
people.all(function(r){
    console.log(r);
});
 
 
// List all with shortcut syntax
people.all(&#039;console.log(r)&#039;);



// Remove a document directly
people.get(me.key, function(r){
    people.remove(me);
});
 
// Remove a document by key
people.save({key:&#039;die&#039;, name:&#039;duder&#039;});
people.remove(&#039;die&#039;);
 
// Destroy all documents
people.nuke();



</pre>The post <a href="https://nerdpress.org/2009/11/25/lawnchair-a-client-side-json-document-store/">lawnchair – a client side JSON document store</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2009/11/25/lawnchair-a-client-side-json-document-store/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
