def get_cache(self, namespace, query_hash, length, start, end):
        cursor = self.cursor
        cursor.execute('SELECT start, value FROM gauged_cache '
                       'WHERE namespace = %s AND hash = %s AND length = %s '
                       'AND start BETWEEN %s AND %s',
                       (namespace, query_hash, length, start, end))
        return cursor.fetchall()
Get a cached value for the specified date range and query
dataset/ETHPy150Open chriso/gauged/gauged/drivers/mysql.py/MySQLDriver.get_cache