How can I safely implement a clearCache method for a static collection accessed by multiple threads

visit shbcf.ru