Expand docstring a bit

pull/2203/head
Erik Johnston 2017-05-08 16:13:51 +01:00
parent ffad4fe35b
commit 093f7e47cc
1 changed files with 7 additions and 1 deletions

View File

@ -1344,11 +1344,17 @@ class EventsStore(SQLBaseStore):
self._get_event_cache.invalidate((event_id,))
def _get_events_from_cache(self, events, allow_rejected, update_metrics=True):
"""
"""Fetch events from the caches
Args:
events (list(str)): list of event_ids to fetch
allow_rejected (bool): Whether to teturn events that were rejected
update_metrics (bool): Whether to update the cache hit ratio metrics
Returns:
dict of event_id -> _EventCacheEntry for each event_id in cache. If
allow_rejected is `False` then there will still be an entry but it
will be `None`
"""
event_map = {}