Set the data content for memcache cache provider

@param string $id
@param string $data
@param int    $lifeTime

@return mixed
170133
public function set($id, $data, $lifeTime = 0)
    {
        if ($lifeTime > (int) 2592000) {
            $lifeTime = time() + $lifeTime;
        }

        return $this->memcache->add($id, $data, CacheFlags::CACHE_COMPRESSED, (int) $lifeTime);
    }
530482
public function save( $id, $data, $ttl = 0 ) {
		foreach ( $this->caches as $cache ) {
			$cache->save( $id, $data, $ttl );
		}
	}
611688
public function store($id, $data)
    {
        $flag = $this->locking ? LOCK_EX : null;
        $file = $this->path . '/' . $id;

        if (! @file_put_contents($file, $data, $flag)) {
            $this->logger->warning("Minify_Cache_File: Write failed to '$file'");
        }

        // write control
        if ($data !== $this->fetch($id)) {
            @unlink($file);
            $this->logger->warning("Minify_Cache_File: Post-write read failed for '$file'");

            return false;
        }

        return true;
    }
955041
public function update($id, array $data)
    {
        return $this->put($this->getPath().'/'.rawurlencode($id), $data);
    }
1068338
public function write($id, $data)
    {
        $return = false;

        $data = array($this->_modifiedColumn => time(),
                      $this->_dataColumn     => (string) $data);

        $rows = call_user_func_array(array(&$this, 'find'), $this->_getPrimary($id));

        if (count($rows)) {
            $data[$this->_lifetimeColumn] = $this->_getLifetime($rows->current());

            if ($this->update($data, $this->_getPrimary($id, self::PRIMARY_TYPE_WHERECLAUSE))) {
                $return = true;
            }
        } else {
            $data[$this->_lifetimeColumn] = $this->_lifetime;

            if ($this->insert(array_merge($this->_getPrimary($id, self::PRIMARY_TYPE_ASSOC), $data))) {
                $return = true;
            }
        }

        return $return;
    }
1198246
public function setCache($key, $data, $lifetimeInSeconds = false)
    {
        return parent::setCache($this->getHierarchicalKey($key), $data, $lifetimeInSeconds);
    }
672450
public function save($key, $data, $lifeTime)
    {
        //zapis w APC
        \apcu_store($this->_namespace . $key, $data, $lifeTime);
        return true;
    }
1293467
public function set($id, $data, $lifetime = 0) {
		return $this->getBackend()->set($id, json_encode($data), $lifetime);
	}
1131769
public function set($id, $data, $lifetime = 0) {
		$event  = $this->getProfiler()->startWrite('Set: ' . $id);
		$result = $this->getBackend()->set($id, $data, $lifetime);
		
		if ($result === false) {
			$event->stopError();
		} else {
			$event->stopSuccess();
		}
		
		return $result;
	}
348749
public function store($key, $data, $lifetime = 0)
    {

        $key = $this->namespace . $key;

        $store = apc_store($key, $data, $lifetime);
        if ($store && $key != $this->namespace . $this->catalog_key) {
            $this->catalogKeyAdd($key, $lifetime);
        }
        return $store;
    }
1280029
public function save( $id, $data, $ttl = 0 ) {

		$options = $this->cache->getOptions();
		$oldTtl  = $options->getTtl( $ttl );
		$options->setTtl( $ttl );

		try {
			$this->cacheInserts++;
			$this->cache->setItem( $id, $data );
		} catch ( \Exception $e ) {
			// Don't re-throw any exception, the consumer
			// should not care about this
			$this->cacheInserts--;
		}

		$options->setTtl( $oldTtl );
	}
1166206
protected function doSave($id, $data, $lifeTime = false)
    {
        if (!$lifeTime) {
            $this->cache->forever($id, $data);
        } else {
            $this->cache->put($id, $data, $lifeTime);
        }

        return true;
    }
886397
public function set($id, $data, $lifetime = 0) {
		try {
			$result = $this->getBackend()->save($this->prepareId($id), $data, $lifetime);
		}
		catch (PhalconCacheException $exception) {
			if ($this->operationsExceptions) {
				throw new OperationFailed('Inserting of the data into the cache failed due to the backend exception occurred: "' . $exception->getMessage() . '"', 0, $exception);
			} else {
				return false;
			}
		}
		
		if ($result === false) {
			if ($this->operationsExceptions) {
				throw new OperationFailed('Inserting of the data into the cache failed, ID: "' . $id . '"');
			} else {
				return false;
			}
		}
		
		return true;
	}
656429
public function save($data, $key, $lifetime = null)
    {
        //bufor nieaktywny
        if (!$this->isActive()) {
            return true;
        }
        //brak podanego klucza (użycie domyślnego z cache)
        if (!$lifetime) {
            //jeśli null - użycie domyślnego, jeśli zero lub false to maksymalny
            $lifetime = $lifetime === null ? $this->_config->lifetime : ($lifetime == 0 ? self::MAX_LIFETIME : $lifetime);
        }
        //zapis w rejestrze
        $this->getRegistry()->setOption($key, $data);
        //zapis w handlerzie
        return (bool)$this->_handler->save($key, $this->_setCacheData($data, time() + $lifetime), $lifetime);
    }
443246
public function write($id, $data)
    {
        $data = base64_encode($data);
        $data = array(
            $this->options->getModifiedColumn() => time(),
            $this->options->getDataColumn()     => (string) $data,
        );

        $rows = $this->tableGateway->select(array(
            $this->options->getIdColumn()   => $id,
            $this->options->getNameColumn() => $this->sessionName,
        ));

        if ($row = $rows->current()) {
            return (bool) $this->tableGateway->update($data, array(
                $this->options->getIdColumn()   => $id,
                $this->options->getNameColumn() => $this->sessionName,
            ));
        }
        $data[$this->options->getLifetimeColumn()] = $this->lifetime;
        $data[$this->options->getIdColumn()]       = $id;
        $data[$this->options->getNameColumn()]     = $this->sessionName;

        return (bool) $this->tableGateway->insert($data);
    }
701457
public function set($id, $data, $lifeTime = 0)
    {
        if (!function_exists('apc_store')) {
            throw new ApcCacheException('function [apc_store] not found !');
        }

        return apc_store($id, $data, $lifeTime);
    }
957015
public function write($id, $data)
    {
        $sql = 'INSERT INTO ' . $this->config['name']
            . ' (' . $this->config['primary'] . ','
            . $this->config['modifiedColumn'] . ','
            . $this->config['lifetimeColumn'] . ','
            . $this->config['dataColumn'] . ')'
            . ' VALUES (?,?,?,?)'
            . ' ON DUPLICATE KEY UPDATE '
            . $this->config['modifiedColumn'] . ' = ?,'
            . $this->config['lifetimeColumn'] . ' = ?,'
            . $this->config['dataColumn'] . ' = ?';

        $this->query($sql, array($id, time(), $this->maxLifetime, $data, time(), $this->maxLifetime, $data));

        return true;
    }