Skip to content

Commit

Permalink
Fixes to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed May 24, 2014
1 parent 351241b commit ba39b86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tg/decorators.py
Expand Up @@ -907,7 +907,7 @@ class cached(object):
The following parameters are accepted:
``key`` - Specifies the controller parameters used to generate the cache key.
NoDefault - Uses function name and all parameters as the key (default)
NoDefault - Uses function name and all request parameters as the key (default)
None - No variable key, uses only function name as key
string - Use function name and only "key" parameter
list - Use function name and all parameters listed
Expand All @@ -924,7 +924,7 @@ class cached(object):
If True, the cache will be invalidated each time the application
starts or is restarted.
``cache_response``
Determines whether the response at the time beaker_cache is used
Determines whether the response at the time the cache is used
should be cached or not, defaults to True.
.. note::
Expand Down Expand Up @@ -974,4 +974,4 @@ def cached_call_controller(controller, remainder, params):
return cached_call_controller

decoration._register_controller_wrapper(controller_wrapper)
return func
return func

0 comments on commit ba39b86

Please sign in to comment.