def IsCached(self, source, mtime):
    if not self.hascontents:
      return False
    if self.filename == source and self.mtime == mtime:
      return True
    else:
      return False
Check whether data from a file is cached.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/analytics/main.py/Cache.IsCached