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, []);
        });
    }