--
You received this message because you are subscribed to the Google Groups "Paisley" group.
To post to this group, send email to paisley-d...@googlegroups.com.
To unsubscribe from this group, send email to paisley-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/paisley-developers?hl=en.
1) Is what I did in one of the branches of my spiderweb of paisley
forks.
Look at couchdb.py here:
https://thomas.apestaart.org/thomas/trac/browser/src/dad/trunk/dadcouch/python/dadcouch/extern/paisley/couchdb.py
(bottom, map and mapped)
and a very simple (but for me already very useful) memory caching
subclass:
The reason I split it off was because I was unsure if caching was in the
scope of Paisley. I think it is, and apparently more people think so,
so I think it makes sense to add the necessary primitives to the base
class.
However, as you might be able to see in that code, it is built on the
object-views work that David started, and that probably needs discussing
before. Note the objFactory which is a class that transforms view
result lines to actual objects.
I will not pretend to know enough about redis/memcache (beyond what they
do or how they vaguely work) to be able to evaluate if the minimal API I
added is right or enough for those use cases - so why not ask those
people to discuss it on this list so we can agree on a common caching
API ?
If we do a caching API, I think paisley should also show how to
implement it, and in that case this simple memory caching implementation
makes perfect sense to add IMO.
Thomas
--
You received this message because you are subscribed to the Google Groups "Paisley" group.
To post to this group, send email to paisley-d...@googlegroups.com.
To unsubscribe from this group, send email to paisley-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/paisley-developers?hl=en.
it's an object mapping layer. Instead of getting a dict, you get a full
object. It uses the mapping code from couchdb-python
I guess it's similar to an ORM, though I haven't written ORM code
myself.
> I think the KV caching API we're discussing is simple enough that it
> can be used with or without the object mapper. Keeps the intelligence
> of the object mapper and how to leverage the cache in the mapper.
yeah, it might be. for example, if objFactory == None then store the
value directly.
T
>
> -J
>
--
All my old friends
they don't know me now
--
GStreamer - bringing multimedia to your desktop
http://gstreamer.freedesktop.org/
it's an object mapping layer. Instead of getting a dict, you get a fullobject. It uses the mapping code from couchdb-python
I guess different people will have different preferences. I haven't run
into what you call introspection problems but maybe I'm
misunderstanding. I just picked off from david reid's branch where he
had started doing this.
As long as paisley doesn't force you to use it (so you can do your
preference) I think it's fine, no ?
T
>
>
> -J
> --
> You received this message because you are subscribed to the Google
> Groups "Paisley" group.
> To post to this group, send email to
> paisley-d...@googlegroups.com.
> To unsubscribe from this group, send email to paisley-developers
> +unsub...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/paisley-developers?hl=en.
--
Cos I feel like a fake when I feel
any feeling
And I wouldn't wanna happen to you
Cos I know that you mean it
--
URGent, best radio on the net - 24/7 !
http://urgent.fm/
I guess different people will have different preferences. I haven't run
into what you call introspection problems but maybe I'm
misunderstanding. I just picked off from david reid's branch where he
had started doing this.
As long as paisley doesn't force you to use it (so you can do your
preference) I think it's fine, no ?