[Zope] RAM Cache Manager doesn't work for my script
Vital Lobachevsky
tick at web.vi
Fri Oct 1 16:27:37 EDT 2004
Dieter Maurer wrote:
> Vital Lobachevsky wrote at 2004-10-1 16:01 +0300:
>
>>I'm trying to use RAM Cache Manager to cache a Python Script object. The
>>script is pretty simple. Just a call of a SQL Method and some logic. I've
>>made this script cacheable using "Cache" tab, ran this script several time.
>>Then went to "Statistics" tab of Cache Manager. But the cache doesn't work --
>>I see only zeros opposite my script. What's wrong? How to get the cache
>>working in this case. Any help greatly appreciated.
>
>
> The RAM cache manager can only cache picklable objects.
> The result of Z SQL Methods is not picklable.
>
> Most DAs support a "dictionaries" method (available via result objects)
> which converts a Z SQL Method result into a standard dictionary.
> These dictionaries would be picklable.
Thanks a lot for the good explanation. That's excactly what i needed.
--
-tick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3146 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.zope.org/pipermail/zope/attachments/20041001/bf1a2754/smime.bin
More information about the Zope
mailing list