Commit 4cb26dd0 authored by Nicolas Delaby's avatar Nicolas Delaby

Improve docstring

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28483 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a0aa17a
......@@ -57,7 +57,7 @@ class ICachePlugin(Interface):
def get(cache_id, scope, default=None):
"""get the calculated value according to the cache_id and scope.
raise KeyError if key does not exists and no default value provided.
return CacheEntry
return CacheEntry or default
"""
def set(cache_id, scope, value, cache_duration=None, calculation_time=0):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment