Skip to main content

Key versioning caching for pyramid.

Project description

Key versioning caching for pyramid.



  • TODO:
    • Introspectables
    • Content negociation: we should add content type in cache key.


  • First draft of interfaces
  • Add a highly not efficient implementation of a key versioner
  • Add a model versioner which depends on key versioner and model identity inspector
  • Add an example application with dummy sqla model to run tests against
  • Add an sqla specific extention with hook on session events to get model modifications.
  • Add and remove cache_basic decorator to cache basic function with primitive typed argument. Let’s focus at view level. We’ll do basic decoraor later.
  • Add cache_factory to construct a decorator to pass to config.add_view method.
  • Add a cache manager which plug all components.
  • Add serializers to adapt objects to store on cache. Serializer objects follow a standard loads/dumps interface.
  • Add Redis client for caching and versioning
  • Implement master-version in redis version-store
  • The cache manager emits CacheHit and CacheMiss events. These events can be forwarded to a statistics aggregator by using the pyramid_metrics extension.
  • Sets the reponse ETag and custom X-View-Cache HTTP headers based on the versioned key of the resource.

Project details

Download files

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

Files for pyramid_caching, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyramid_caching-0.1.tar.gz (18.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page