private function createCacheItem(CacheableCommand $command, $value)
    {
        return $this->cache->getItem($this->getCacheKey($command))
            ->expiresAfter($this->getCacheExpiry($command))
            ->set($value);
    }
private function createCacheItem(CacheableCommand $command, $value)
    {
        return $this->cache->getItem($this->getCacheKey($command))
            ->expiresAfter($this->getCacheExpiry($command))
            ->set($value);
    }
private function createCacheItem ( CacheableCommand $ command , $ value ) { return $ this -> cache -> getItem ( $ this -> getCacheKey ( $ command ) ) -> expiresAfter ( $ this -> getCacheExpiry ( $ command ) ) -> set ( $ value ) ; }
Create a new cache item to be persisted.

@param CacheableCommand $command
@param mixed $value
@return CacheItemInterface
Create a new cache item to be persisted .