Ram Caching under Zope 3 - The return from the cache
I thaught this would be very complicated to set up memory
caching in Zope 3, as I needed a tool that would be enough low
level to be integrated into my objects.
Thread safeness... availabilty... v prefix to avoid .....
But it's very simple in fact :
from zope.app.cache.ram import RAMCache
collection_name = 'BigObjects'
my_super_cache = RAMCache()
object_to_cache = BigObjectJustInRam()
object_to_cache2 = BigObjectJustInRam()
(Post originally written by Tarek Ziadé on the old Nuxeo blogs.)
Category: Product & Development