Prado\Data\SqlMap\DataMapper\TSqlMapApplicationCache::flush PHP Method

flush() public method

Deletes all items in the cache, only for data cached by sqlmap cachemodel
public flush ( )
    public function flush()
    {
        $keyList = $this->getKeyList();
        $cache = $this->getCache();
        foreach ($keyList as $key) {
            $cache->delete($key);
        }
        // Remove the old keylist
        $cache->delete($this->getKeyListId());
    }