Use BlockingQueue for dirtyCache to prevent possible concurrency issues.