Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Cache Controlled SQL Methods -- a variant of Zope's ZSQLMethods with better caching. For Zope 2.11 and above

Project Description

Description

Z SQL methods provide a caching mechanism that can greatly reduce the number of database accesses.

If, however, the database is changed dynamically, the cache must be used with caution as otherwise stale query results may be returned.

Cache controled SQL methods (CCSQLMethods) are derived from Z SQL methods. In addition to the normal Z SQL methods, a cache controlled SQL method implements the functions flushCache() and flushCacheEntry(REQUEST=None, **kw). flushCache flushes the complete cache associated with the method. flushCacheEntry flushes the query specified by its arguments. The query is determined in the same way as in __call__. This allows explicit cache control and allows for much better cache utilization.

Note that flushCache works reliably across multiple ZEO client processes while flushCacheEntry takes effect only in a single process.

Cache controled SQL methods are also available as an CMF FSZSQLMethod derivative. They are registered with the filename extension ccsql.

History

Version 2.0

  • moved over to PyPI
  • works for Zope 2.11 (and possible above)

Version 1.0

made Zope 2.8 compatible.

Release History

Release History

This version
History Node

2.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Products.CCSQLMethods-2.0.tar.gz (7.8 kB) Copy SHA256 Checksum SHA256 Source May 29, 2008

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting