args['key'])) { //var_dump('Purging -> ' . $this->args['key'] . ' from Redis cache'); $this->getCache()->purge($this->args['key']); } } /** * Get cache * @return RedisCache * @throws Exception */ private function getCache(): RedisCache { global $register; return new RedisCache($register->get('cache')); } public function shutdown(): void { } }