Pimcore\Cache\Backend\Memcached::save PHP Метод

save() публичный Метод

Note : $data is always "string" (serialization is done by the core not by the backend)
public save ( string $data, string $id, array $tags = [], integer $specificLifetime = false ) : boolean
$data string Datas to cache
$id string Cache id
$tags array Array of strings, the cache record will be tagged by each string entry
$specificLifetime integer If != false, set a specific lifetime for this cache record (null => infinite lifetime)
Результат boolean True if no problem
    public function save($data, $id, $tags = [], $specificLifetime = false)
    {
        $this->checkCacheConsistency();
        $result = parent::save($data, $id, [], $specificLifetime);
        if ($result) {
            if (count($tags) > 0) {
                $this->saveTags($id, $tags);
            }
        } else {
            $this->remove($id);
        }
        return $result;
    }