Add missing parameter description in module _cache_handler

Change-Id: I71c6a322739fa3b361eadd93afb635cb467aaf58
This commit is contained in:
ChangBo Guo(gcb) 2016-10-18 18:34:36 +08:00 committed by ChangBo Guo(gcb)
parent 21ad0867be
commit 91fb94bc90
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,8 @@ LOG = logging.getLogger(__name__)
def read_cached_file(cache, filename, force_reload=False):
"""Read from a file if it has been modified.
:param cache: dictionary to hold opaque cache.
:param filename: the file path to read.
:param force_reload: Whether to reload the file.
:returns: A tuple with a boolean specifying if the data is fresh
or not.
@ -46,6 +48,7 @@ def read_cached_file(cache, filename, force_reload=False):
def delete_cached_file(cache, filename):
"""Delete cached file if present.
:param cache: dictionary to hold opaque cache.
:param filename: filename to delete
"""