code: public function doStore(ModulesEvent $event)
      {
          $cache  = $this->getCache();
          $config = $this->getConfig();
          $cache->set('config', $config);
      }
docs: Stores the system configuration to cache.
  
  @param \Es\Modules\ModulesEvent $event The modules event