[Erp5-report] r39385 nicolas - /erp5/trunk/products/ERP5Type/CachePlugins/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 20 13:17:55 CEST 2010


Author: nicolas
Date: Wed Oct 20 13:17:54 2010
New Revision: 39385

URL: http://svn.erp5.org?rev=39385&view=rev
Log:
Transmit expiracy value of cache factory to DistributedRamCache plugin.
This patch authorize to purge old entries on backend side automatically (if backend
storage support this feature)


Modified:
    erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py

Modified: erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py?rev=39385&r1=39384&r2=39385&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] Wed Oct 20 13:17:54 2010
@@ -84,6 +84,7 @@ class DistributedRamCache(BaseCache):
       dictionary = local_dict[configuration_key]
     except KeyError:
       dictionary = MemcachedDict(self._servers.split('\n'),
+                      expiration_time=self._expiration_time,
                       server_max_key_length=self._server_max_key_length,
                       server_max_value_length=self._server_max_value_length)
       local_dict[configuration_key] = dictionary




More information about the Erp5-report mailing list