Shelve, (feed)caching and Shove — oh my.

August 7th, 2007 § 2 comments

I saw over the week­end (in my lim­ited time in front of my lonely Mac­Book) that Doug Hell­mann had done another Python Mod­ule of the week — this time on the shelve mod­ule, a pretty cool mod­ule (that I didn’t know about). To quote:

The shelve mod­ule can be used as a sim­ple per­sis­tent stor­age option for Python objects when a rela­tional data­base is overkill. The shelf is accessed by keys, just as with a dic­tio­nary. The val­ues are pick­led and writ­ten to a data­base cre­ated and man­aged by anydbm.

Of course, shelve is used in the other project he announced — Feed­Cache, a cachine mech­a­nism he uses to cache Atom/RSS feeds.And then, a com­ment on both posts linked to a dif­fer­ent cheese­shop mod­ule: Shove. Shove is like Shelve/Pickle/Object stor­age on steroids. It sup­ports 15 stor­age back ends for object stor­age, and 9 dif­fer­ent back­ends for caching.I have some need to be using a mod­ule like Shove for some data/object caching/sharing, so when I get a chance I’ll post a trip report. 
Update: A com­ment pushed me over to Mul­ti­shove. Hot. 

  • lcr

    Also of poten­tial inter­est: mul­ti­shove keeps mul­ti­ple shove stor­age back­ends in sync (while using the same cache).

  • http://www.jessenoller.com jesse

    Thanks!

What's this?

You are currently reading Shelve, (feed)caching and Shove — oh my. at jessenoller.com.

meta