src/Service/cacheService.php
public function save($data, $id)
    {
        if ($this->cacheObj && strtoupper($this->cache) == "ENABLED") {
            return $this->cacheObj->save($data, $id);
        } else {
            return false;
        }
    }
public function save($data, $id)
    {
        if ($this->cacheObj && strtoupper($this->cache) == "ENABLED") {
            return $this->cacheObj->save($data, $id);
        } else {
            return false;
        }
    }
Save cache

@param mixed $data
@param string $id
@return boolean true if no problem