public function testClearThousands()
 {
     Filesystem::removeFolder(TEMP_FOLDER . '/my_test_cache');
     $cache = new SimpleCache(new SimpleFileBasedCacheStore(TEMP_FOLDER . '/my_test_cache'));
     for ($i = 0; $i < 1000; $i++) {
         $object = new stdClass();
         $object->Title = "Object {$i}";
         $other = $i % 10;
         $cache->store('key_' . $i, $object, -1, array('mytag', "mod{$other}"));
     }
     $start = microtime(true);
     $cache->deleteByTag('mytag');
     $end = microtime(true) - $start;
     $elems = $cache->getByTag('mytag');
     $this->assertEquals(0, count($elems));
 }