News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sebastian Bergmann's Blog:
Cool PHP Objects Sleep on the Couch
January 12, 2009 @ 12:03:06

This new post from Sebastian Bergmann combines two technologies - the Object_Freezer class and the Couch DB to make a simple object storage system.

The Object_Freezer library for PHP provides the low-level functionality to store ("freeze") and fetch ("thaw") any PHP userland object to and from arbitrary object stores. Today I added an object storage implementation that uses Apache CouchDB as its backend.

His example creates an instance of a Foo class, passes it into the "freezer" object which, thanks to his new additions, automatically drops it into a Couch DB database for holding. The same is done for the "thaw" process - a call to fetch() and the object is returned as good as new.

0 comments voice your opinion now!
object freeze unfreeze couchdb objectfreezer thaw


blog comments powered by Disqus

Similar Posts

Professioanl PHP Blog: Building a culture of objects in PHP

Derick Rethans' Blog: PHP Vikinger 2008 Wrap-up

Alexey Zakhlestin's Blog: Syck 0.9.2

Milw0rm.com: Exploit - PHP5 COM Object Security Bypass (Windows)

Stubbles Blog: Two New PHP6 Wishlist Items


Community Events





Don't see your event here?
Let us know!


introduction release laravel configure api community conference voicesoftheelephpant list language version install opinion series interview symfony podcast extension composer unittest

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework