memcached cache manager anyone?

Zope 2 has this thing called Cache Manager, which is useful for
caching some stuff that is expensive to compute. By default there is a
RAM Cache Manager and a Accelerated HTTP Cache Manager or
something to that effect.

I stumbled on memcached after following a link from a product
announcement
, and ending up at Django homepage.

Particularly nice is Django’s use of method wrappers and
decorator syntax for adding caching to random methods.

I had experimented with a very similar approach on some backend code
for Enfold Desktop (previously known as Plone Desktop), but it
wasn’t long before Mark Hammond ripped it out mercilessly. I’m not
exactly sure why he didn’t like it, it looked like a nice idea at the
time, and seeing Django came up with a similar approach makes me think
I was on the right track.

Anyway, the real subject here is that I was wondering if anyone would
be interested in a memcached Cache Manager for Zope 2, because all
the Cache Managers in Zope 2 seem to suffer from the exact same issues
that memcached claims to solve:

  • Per-thread/duplicate caching
  • Low hit-rate
  • Several servers can’t share cached data

It would seem to me that memcached might be just the right answer to
give Zope’s Cache Managers a last breath of life before Zope 3 comes
along and rule them all.

I’m sure Geoff Davis would love the idea.

Advertisement

One thought on “memcached cache manager anyone?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.