Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [propel-dev] memcache support in Propel

propel
Discussion topic

Back to topic list

Re: [propel-dev] memcache support in Propel

Reply

Author Alexander Kahl <akahl at iconmobile dot com>
Full name Alexander Kahl <akahl at iconmobile dot com>
Date 2007-10-05 05:03:59 PDT
Message Hi Pedram :)

On Thu, 2007-10-04 at 12:16 -0400, Pedram Nimreezi wrote:
> > Am I getting something
> > totally wrong here?
>
> Only slightly
Then I'll try to get the whole idea.

> > I want to cache persistent data that is retrieved
> > and modified via Propel.

> Ahh... that's the problem to attack... I agree the logic
> for memcache should be in Propel... moving towards
> that being implemented can we agree that the first step
> is checking to see the memcache extension is loaded?
Yes of course, the memcache support should be optional.

> If not using like... a CreoleSession? (i wrote that if you need it btw)
You've wrote it already? Where can I find it?
But it's planned to replace Creole support by PHP PDO right? Read it
somewhere on the website.

> if the extension 'memcache' IS loaded... then look for memcache
> server config in the propel.ini, it should be an array because you
> can use memcache in a distributed fashion.
I think propel.ini configuration support should be provided as well as
generic methods. Like, right now I'm initializing Propel with
configuration parsed from YAML files and at least that should also be
possible for the optional memcache support.

> And in the code generator
> insert the requisite cache validation, invalidation, max buffers, etc...
Exactly

> > What if you'd even hold the compiled Propel code in cache?
> How would you execute it? a big eval() ? that kinda steps forward and
> again backwards.
You think we can get nothing out of that?

> But that's moving towards an extension based implementation and that's hot... ;)
I'd always favor extensions wherever feasible and useful at all. Maybe
the cache support should even be abstracted and memcache support
encapsulated that way so it'll even be more extensible and modular.

> > > > You mean requesting memcache data still requires to include Propel's
> > > > generated files to get the actual related request..?
> > > >
> > > right.. unless of course you used separate data transfer objects (value objects)
> > > to represent that data....
> > Right now this concept doesn't sound familiar to me. Can you tell me where it is used?
> >
>
> It's used whenever you want to abstract data as an object, propel does
> it transparently
> or you can have a couple of your own... externally. Passing value
> objects that represent
> actual meanings instead of primitive datatypes to explain (self
> document) that meaning.
You mean the data retrieved simply encapsulated in objects? Say, like if
you've got a customer table and Propel retrieves all the data for one
customer, the resulting Customer object instance would be what you call
a value object..?

--
alexander kahl _ developer

iconmobile GmbH _ methfesselstr. 30-36 _ 10965 berlin _ germany
phone +49 30 886633 212 _ fax +49 30 886633 150 _ mobile +49 178 8279256
akahl at iconmobile dot com _ www.iconmobile.com

local court charlottenburg _ hrb 88308
managing directors _ thomas fellger | stefan kirschke
Attachments

« Previous message in topic | 10 of 13 | Next message in topic »

Messages

Show all messages in topic

memcache support in Propel Alexander Kahl <akahl at iconmobile dot com> Alexander Kahl <akahl at iconmobile dot com> 2007-09-21 03:44:35 PDT
     Re: [propel-dev] memcache support in Propel Cameron Brunner <cameron dot brunner at gmail dot com> Cameron Brunner <cameron dot brunner at gmail dot com> 2007-09-21 17:04:30 PDT
         Re: [propel-dev] memcache support in Propel Pedram Nimreezi <zenstyle at gmail dot com> Pedram Nimreezi <zenstyle at gmail dot com> 2007-09-22 15:26:22 PDT
             Re: [propel-dev] memcache support in Propel Alexander Kahl <akahl at iconmobile dot com> Alexander Kahl <akahl at iconmobile dot com> 2007-09-24 02:31:12 PDT
                 Re: [propel-dev] memcache support in Propel Cameron Brunner <cameron dot brunner at gmail dot com> Cameron Brunner <cameron dot brunner at gmail dot com> 2007-09-24 22:25:07 PDT
                     Re: [propel-dev] memcache support in Propel Alexander Kahl <akahl at iconmobile dot com> Alexander Kahl <akahl at iconmobile dot com> 2007-10-02 09:07:26 PDT
                 Re: [propel-dev] memcache support in Propel Pedram Nimreezi <zenstyle at gmail dot com> Pedram Nimreezi <zenstyle at gmail dot com> 2007-09-24 22:52:39 PDT
                     Re: [propel-dev] memcache support in Propel Alexander Kahl <akahl at iconmobile dot com> Alexander Kahl <akahl at iconmobile dot com> 2007-10-02 09:13:00 PDT
                         Re: [propel-dev] memcache support in Propel Pedram Nimreezi <zenstyle at gmail dot com> Pedram Nimreezi <zenstyle at gmail dot com> 2007-10-04 09:16:28 PDT
                             Re: [propel-dev] memcache support in Propel Alexander Kahl <akahl at iconmobile dot com> Alexander Kahl <akahl at iconmobile dot com> 2007-10-05 05:03:59 PDT
                                 Re: [propel-dev] memcache support in Propel Cameron Brunner <cameron dot brunner at gmail dot com> Cameron Brunner <cameron dot brunner at gmail dot com> 2007-10-05 05:26:37 PDT
                                     Re: [propel-dev] memcache support in Propel Alexander Kahl <akahl at iconmobile dot com> Alexander Kahl <akahl at iconmobile dot com> 2007-10-05 05:50:04 PDT
                                     Re: [propel-dev] memcache support in Propel Pedram Nimreezi <zenstyle at gmail dot com> Pedram Nimreezi <zenstyle at gmail dot com> 2007-10-05 10:53:38 PDT
Messages per page: