Changeset - 062aa10097bc
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-11-16 20:02:04
mads@kiilerich.com
Grafted from: 23b0d6f5ebde
lib: clarify where caching_query comes from
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/caching_query.py
Show inline comments
 
# apparently based on https://github.com/sqlalchemy/sqlalchemy/blob/rel_0_7/examples/beaker_caching/caching_query.py
 

	
 
"""caching_query.py
 

	
 
Represent persistence structures which allow the usage of
 
Beaker caching with SQLAlchemy.
 

	
 
The three new concepts introduced here are:
 

	
 
 * CachingQuery - a Query subclass that caches and
 
   retrieves results in/from Beaker.
 
 * FromCache - a query option that establishes caching
 
   parameters on a Query
 
 * _params_from_query - extracts value parameters from
0 comments (0 inline, 0 general)