public function clear()
    {
        $currentDate = new DateTime();
        foreach (\array_keys(self::$registry) as $key) {
            $this->clearExpiredKey($key, $currentDate);
        }
    }
public function clear()
    {
        $currentDate = new DateTime();
        foreach (\array_keys(self::$registry) as $key) {
            $this->clearExpiredKey($key, $currentDate);
        }
    }
public function clear ( ) { $ currentDate = new DateTime ( ) ; foreach ( \ array_keys ( self :: $ registry ) as $ key ) { $ this -> clearExpiredKey ( $ key , $ currentDate ) ; } }
Clears all expired values from cache.

@return mixed
Clears all expired values from cache .