src/CacheInclude.php
public function flushByName($name)
    {
        $this->lockCacheAndRun(function() use ($name) {
            $keys = (array) $this->cache->get($name);
            foreach (array_keys($keys) as $key) {
                $this->cache->delete($key);
            }
            $this->cache->set($name, []);
        });
    }
public function flushByName($name)
    {
        $this->lockCacheAndRun(function() use ($name) {
            $keys = (array) $this->cache->get($name);
            foreach (array_keys($keys) as $key) {
                $this->cache->delete($key);
            }
            $this->cache->set($name, []);
        });
    }
public function flushByName ( $ name ) { $ this -> lockCacheAndRun ( function ( ) use ( $ name ) { $ keys = ( array ) $ this -> cache -> get ( $ name ) ; foreach ( array_keys ( $ keys ) as $ key ) { $ this -> cache -> delete ( $ key ) ; } $ this -> cache -> set ( $ name , [ ] ) ; } ) ; }
Flush the named cache block

@param $name
Flush the named cache block