read lines from cache.