Exemple #1
0
 /**
  * Sets a cache value.
  *
  * @param $cid
  * @param $value
  * @param int $ttl
  * @return bool
  */
 protected function setCacheKey($cid, $value, $ttl = 3600)
 {
     return Cache::getCache()->save($cid, $value, $ttl);
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  *
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     Cache::getCache()->flushAll();
 }