summaryrefslogtreecommitdiff
path: root/CHANGES.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-08 01:15:31 -0600
committerMichael Merickel <michael@merickel.org>2020-01-08 01:15:31 -0600
commit8415bc1778ea080aeed69ef2d752f3d0063e26f9 (patch)
treeb74ad2eace76e393ec19895cab79db88138c02e0 /CHANGES.rst
parent5c05cd9837adcd9b0ee0ee775added2a6d3b6688 (diff)
downloadpyramid-8415bc1778ea080aeed69ef2d752f3d0063e26f9.tar.gz
pyramid-8415bc1778ea080aeed69ef2d752f3d0063e26f9.tar.bz2
pyramid-8415bc1778ea080aeed69ef2d752f3d0063e26f9.zip
add a RequestLocalCache class
Diffstat (limited to 'CHANGES.rst')
-rw-r--r--CHANGES.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 70f5bbb64..e93f8a813 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -82,6 +82,16 @@ Features
invoked as part of ``pyramid.scripting.prepare`` and
``pyramid.paster.boostrap``.
+- Added ``pyramid.request.RequestLocalCache`` which can be used to create
+ simple objects that are shared across requests and can be used to store
+ per-request data. This is useful when the source of data is external to
+ the request itself. Often a reified property is used on a request via
+ ``pyramid.config.Configurator.add_request_method``, or
+ ``pyramid.decorator.reify``, and these work great when the data is
+ generated on-demand when accessing the request property. However, often
+ the case is that the data is generated when accessing some other system
+ and then we want to cache the data for the duration of the request.
+
Deprecations
------------