Webiny\Component\Rest\Compiler\CacheDrivers\ArrayDriver::delete PHP Method

delete() public method

Delete the cache for the given api and class.
public delete ( $api, $class )
$api Name of the API.
$class Name of the class.
    public function delete($api, $class)
    {
        $cacheKey = md5($api . $class);
        if (isset($this->cache[$cacheKey])) {
            unset($this->cache[$cacheKey]);
        }
    }