Module ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad Call NameLoad TupleLoad Str Str Str Expr Call NameLoad NameLoad Expr Call NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad TupleLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad TupleLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad GeneratorExp NameLoad comprehension NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults kwarg body Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Str body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num With Call AttributeLoad NameLoad attr Str keyword Str body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num With Call AttributeLoad NameLoad attr NameLoad body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign AttributeStore NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad keyword Num Assign AttributeStore AttributeLoad NameLoad attr attr Num With Call AttributeLoad NameLoad attr Str keyword TupleLoad TupleLoad Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad TupleLoad Str Str Str FunctionDef arguments args defaults kwarg body Return Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad keyword Lambda arguments args NameParam defaults Num attr Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Str With Call AttributeLoad NameLoad attr Str keyword Dict NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Str keyword Dict NameLoad Str body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Str Num decorator_list decorator_list
N/A __future__ unicode_literals N/A unittest datetime timedelta datetime six.moves.cPickle dumps loads six iteritems flask Flask send_file werkzeug.wrappers Response werkzeug.datastructures HeaderSet werkzeug.contrib.cache SimpleCache flask_webcache.storage Config Metadata Store Retrieval flask_webcache.storage CacheMiss NoResourceMetadata NoMatchingRepresentation NotFreshEnoughForClient RecacheRequested flask_webcache.recache RECACHE_HEADER flask_webcache.utils werkzeug_cache_get_or_add testutils compare_numbers N/A a N/A Flask __name__ UtilsTestCase N/A N/A unittest TestCase N/A test_config_kwargs N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A Config foo 1 N/A test_metadata_datastructure N/A N/A self N/A N/A check_metadata N/A N/A m N/A N/A N/A N/A N/A self assertEquals N/A m salt qux N/A N/A N/A self assertIn foo N/A m vary N/A N/A N/A self assertIn bar N/A m vary N/A N/A m N/A Metadata N/A HeaderSet N/A foo bar qux N/A N/A check_metadata m N/A N/A check_metadata N/A loads N/A dumps m N/A m2 N/A Metadata N/A HeaderSet N/A foo bar qux N/A N/A N/A self assertEquals m m2 N/A m3 N/A Metadata N/A HeaderSet N/A foo bar notqux N/A N/A N/A self assertNotEquals m2 m3 N/A N/A StorageTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self c N/A SimpleCache N/A N/A self s N/A Store N/A self c N/A N/A self r N/A Retrieval N/A self c N/A test_basic_cachability N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response N/A Response N/A x N/A x foo N/A N/A N/A self assertTrue N/A N/A N/A self s should_cache_response N/A Response status 204 N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response N/A Response status 500 N/A N/A N/A self assertTrue N/A N/A N/A self s should_cache_response N/A Response foo N/A N/A N/A self assertTrue N/A N/A N/A self s should_cache_response N/A Response N/A r N/A Response N/A N/A N/A N/A r vary add * N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response r N/A N/A N/A a test_request_context /foo method HEAD N/A N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response N/A Response foo N/A N/A N/A a test_request_context /foo method POST N/A N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response N/A Response foo N/A test_cache_control_cachability N/A N/A self N/A N/A check_response_with_cache_control N/A N/A N/A cc N/A N/A r N/A Response N/A N/A k v N/A iteritems cc N/A N/A N/A setattr N/A r cache_control k v N/A N/A N/A N/A self s should_cache_response r N/A N/A N/A N/A a test_request_context N/A N/A N/A N/A self assertTrue N/A check_response_with_cache_control max_age 10 N/A N/A N/A self assertTrue N/A check_response_with_cache_control must_revalidate True N/A N/A N/A self assertFalse N/A check_response_with_cache_control max_age 0 N/A N/A N/A self assertFalse N/A check_response_with_cache_control private True N/A N/A N/A self assertFalse N/A check_response_with_cache_control no_cache True N/A N/A N/A self assertFalse N/A check_response_with_cache_control no_store True N/A test_expire_cachability N/A N/A self N/A N/A check_response_with_expires N/A N/A dt N/A N/A N/A r N/A Response N/A N/A r expires dt N/A N/A N/A N/A self s should_cache_response r N/A N/A N/A N/A a test_request_context N/A N/A N/A N/A self assertFalse N/A check_response_with_expires N/A N/A N/A datetime utcnow N/A timedelta seconds 1 N/A N/A N/A self assertTrue N/A check_response_with_expires N/A N/A N/A datetime utcnow N/A timedelta seconds 1 N/A test_default_cachability N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A self assertTrue N/A N/A N/A self s should_cache_response N/A Response N/A N/A N/A a test_request_context /foo query_string ?bar N/A N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response N/A Response N/A test_x_cache_headers N/A N/A self N/A N/A N/A r N/A Response N/A N/A N/A N/A self s mark_cache_hit r N/A N/A N/A self assertEquals N/A N/A r headers N/A N/A N/A self s X_CACHE_HEADER hit N/A N/A N/A N/A self s mark_cache_miss r N/A N/A N/A self assertEquals N/A N/A r headers N/A N/A N/A self s X_CACHE_HEADER miss N/A test_metadata_miss N/A N/A self N/A N/A N/A N/A N/A self assertRaises NoResourceMetadata N/A N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A N/A self r fetch_metadata N/A test_response_miss N/A N/A self N/A N/A N/A N/A N/A self assertRaises NoResourceMetadata N/A N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A N/A self r fetch_response N/A test_store_retrieve_cycle N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo N/A N/A r N/A Response foo N/A N/A N/A N/A self s cache_response r N/A N/A N/A self assertEquals N/A len N/A N/A self c _cache 2 N/A r2 N/A N/A N/A self r fetch_response N/A N/A N/A self assertEquals N/A r data N/A r2 data N/A test_vary_miss N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo headers N/A N/A accept-encoding gzip N/A N/A r N/A Response foo N/A N/A N/A N/A r vary add accept-encoding N/A N/A r content_encoding gzip N/A N/A N/A N/A self s cache_response r N/A N/A N/A self assertRaises NoMatchingRepresentation N/A N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A N/A self r fetch_response N/A test_invalidation_condition N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo method PUT N/A N/A r N/A Response foo N/A N/A N/A self assertTrue N/A N/A N/A self s should_invalidate_resource r N/A r N/A Response foo status 500 N/A N/A N/A self assertFalse N/A N/A N/A self s should_invalidate_resource r N/A N/A N/A a test_request_context /foo N/A N/A r N/A Response foo N/A N/A N/A self assertFalse N/A N/A N/A self s should_invalidate_resource r N/A test_invalidation N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo N/A N/A r N/A Response foo N/A N/A N/A N/A self s cache_response r N/A N/A N/A self assertEquals N/A len N/A N/A self c _cache 2 N/A N/A N/A a test_request_context /foo method PUT N/A N/A r N/A Response foo N/A N/A N/A self assertTrue N/A N/A N/A self s should_invalidate_resource r N/A N/A N/A N/A self s invalidate_resource N/A N/A N/A self assertEquals N/A len N/A N/A self c _cache 1 N/A N/A N/A self assertRaises CacheMiss N/A N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A N/A self r fetch_response N/A test_master_salt_invalidation N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo N/A N/A r N/A Response foo N/A N/A N/A N/A self s cache_response r N/A N/A N/A self assertEquals N/A N/A N/A N/A self r fetch_response data foo N/A N/A N/A N/A self r config master_salt newsalt N/A N/A N/A self assertRaises NoMatchingRepresentation N/A N/A N/A N/A N/A self r fetch_response N/A test_request_cache_controls N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A self assertTrue N/A N/A N/A self r should_fetch_response N/A N/A N/A a test_request_context /foo method HEAD N/A N/A N/A N/A self assertTrue N/A N/A N/A self r should_fetch_response N/A N/A N/A a test_request_context /foo method POST N/A N/A N/A N/A self assertFalse N/A N/A N/A self r should_fetch_response N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control no-cache N/A N/A N/A N/A self assertFalse N/A N/A N/A self r should_fetch_response N/A N/A N/A a test_request_context /foo headers N/A N/A pragma no-cache N/A N/A N/A N/A self assertFalse N/A N/A N/A self r should_fetch_response N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control max-age=0 N/A N/A N/A N/A self assertFalse N/A N/A N/A self r should_fetch_response N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control max-age=5 N/A N/A N/A N/A self assertTrue N/A N/A N/A self r should_fetch_response N/A test_response_freshness_seconds N/A N/A self N/A N/A N/A r N/A Response N/A N/A N/A self assertEquals 0 N/A N/A N/A self r response_freshness_seconds r N/A N/A r date N/A N/A datetime utcnow N/A N/A N/A self assertTrue N/A compare_numbers N/A N/A self s DEFAULT_EXPIRATION_SECONDS N/A N/A N/A self r response_freshness_seconds r 1 N/A N/A r expires N/A N/A N/A datetime utcnow N/A timedelta seconds 345 N/A N/A N/A self assertTrue N/A compare_numbers 345 N/A N/A N/A self r response_freshness_seconds r 1 N/A N/A N/A r cache_control max_age 789 N/A N/A N/A self assertTrue N/A compare_numbers 789 N/A N/A N/A self r response_freshness_seconds r 1 N/A test_min_fresh N/A N/A self N/A N/A N/A r N/A Response N/A N/A r date N/A N/A N/A datetime utcnow N/A timedelta seconds 100 N/A N/A N/A r cache_control max_age 200 N/A f N/A N/A N/A self r response_freshness_seconds r N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control min-fresh=50 N/A N/A N/A N/A N/A N/A N/A self r verify_response_freshness_or_miss r f N/A N/A N/A CacheMiss N/A N/A N/A N/A self fail unexpected CacheMiss on reasonably fresh response N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control min-fresh=150 N/A N/A N/A N/A self assertRaises NotFreshEnoughForClient N/A N/A self r verify_response_freshness_or_miss r f N/A test_request_cache_control_disobedience N/A N/A self N/A N/A N/A c N/A SimpleCache N/A cfg N/A Config request_controls_cache False N/A s N/A Store c cfg N/A r N/A Retrieval c cfg N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control no-store N/A N/A N/A N/A self assertTrue N/A N/A r should_fetch_response N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control no-store N/A N/A N/A N/A self assertTrue N/A N/A s should_cache_response N/A Response N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control no-store N/A N/A N/A N/A self assertTrue N/A N/A s should_cache_response N/A Response N/A resp N/A Response N/A N/A resp date N/A N/A N/A datetime utcnow N/A timedelta seconds 100 N/A N/A N/A resp cache_control max_age 200 N/A N/A N/A a test_request_context /foo headers N/A N/A cache-control min-fresh=150 N/A N/A f N/A N/A N/A self r response_freshness_seconds resp N/A N/A N/A N/A N/A r verify_response_freshness_or_miss resp f N/A N/A N/A CacheMiss N/A N/A N/A N/A self fail unexpected CacheMiss when ignoring request cache control N/A test_sequence_converted_responses N/A N/A self N/A N/A N/A N/A N/A a test_request_context /foo N/A N/A r N/A Response N/A f N/A f foo N/A N/A N/A r make_sequence N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response r N/A r N/A send_file __file__ N/A N/A N/A r make_sequence N/A N/A N/A self assertFalse N/A N/A N/A self s should_cache_response r N/A N/A RecacheTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self recached False dispatcher N/A N/A salt N/A N/A N/A N/A self recached True N/A N/A N/A self c N/A SimpleCache N/A cfg N/A Config preemptive_recache_seconds 10 preemptive_recache_callback dispatcher N/A N/A self s N/A Store N/A self c cfg N/A N/A self r N/A Retrieval N/A self c cfg N/A test_preemptive_recaching_predicate N/A N/A self N/A N/A N/A m N/A Metadata N/A HeaderSet N/A foo bar qux mkretr N/A N/A N/A kwargs N/A N/A N/A Retrieval N/A self c N/A Config kwargs N/A N/A N/A N/A a test_request_context / N/A N/A N/A N/A self assertFalse N/A N/A N/A mkretr preemptive_recache_seconds 10 should_recache_preemptively 10 m N/A N/A N/A self assertFalse N/A N/A N/A mkretr preemptive_recache_callback N/A N/A N/A x N/A 0 should_recache_preemptively 10 m N/A N/A N/A self assertFalse N/A N/A N/A self r should_recache_preemptively 11 m N/A N/A N/A self assertTrue N/A N/A N/A self r should_recache_preemptively 10 m N/A N/A N/A self assertFalse N/A N/A N/A self r should_recache_preemptively 10 m N/A N/A N/A N/A self c clear N/A N/A N/A self assertTrue N/A N/A N/A self r should_recache_preemptively 10 m N/A test_preemptive_recaching_cache_bypass N/A N/A self N/A N/A N/A fresh N/A Response foo N/A N/A N/A a test_request_context /foo N/A N/A N/A N/A N/A self s cache_response fresh N/A metadata N/A N/A N/A self r fetch_metadata N/A N/A N/A a test_request_context /foo N/A N/A cached N/A N/A N/A self r fetch_response N/A N/A N/A self assertEquals N/A N/A cached headers N/A N/A N/A self r X_CACHE_HEADER hit N/A N/A N/A a test_request_context /foo headers N/A RECACHE_HEADER N/A metadata salt N/A N/A N/A N/A self assertRaises RecacheRequested N/A N/A self r fetch_response N/A N/A N/A a test_request_context /foo headers N/A RECACHE_HEADER incorrect-salt N/A N/A N/A N/A N/A N/A N/A self r fetch_response N/A N/A N/A RecacheRequested N/A N/A N/A N/A self fail unexpected RecacheRequested for incorrect salt N/A N/A UtilityTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self c N/A SimpleCache N/A test_werkzeug_cache_get_or_add_missing_key N/A N/A self N/A N/A N/A N/A N/A self assertEquals bar N/A werkzeug_cache_get_or_add N/A self c foo bar 10 N/A test_werkzeug_cache_get_or_add_existing_key N/A N/A self N/A N/A N/A N/A N/A N/A self c set foo bar N/A N/A N/A self assertEquals bar N/A werkzeug_cache_get_or_add N/A self c foo qux 10 N/A N/A