Save a key-value.
@param  string  $id
@param  mixed   $data
@param  integer $lifeTime
@return boolean
@api
775195
public function save($id, $data, $lifeTime=0) {
		return $this->driver->save($id, $data, $lifeTime);
	}
502460
function save( $id, $data )
    {
        $data['__meta']['sid'] = $this->sid;

        $params = [
            'index' => $this->config->index,
            'type' => $this->config->type,
            'id' => $id,
            'body' => $data,
        ];

        $this->client->index($params);
    }
34882
public function save($key, $data, $lifeTime)
    {
        $this->_server->set($this->_namespace . '_' . $key, $data, 0, $lifeTime > self::MAX_LIFETIME ? self::MAX_LIFETIME : $lifeTime);
        return true;
    }
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;
    }
293980
public function save($id, $data, $ttl = 60, $raw = FALSE)
	{
		return $this->{$this->_adapter}->save($this->key_prefix.$id, $data, $ttl, $raw);
	}
787256
public function save( $id, $data, $ttl = 0 ) {
		$this->cache->save( $id, $data, $ttl );
	}
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;
    }
758533
public function save($id, $data, $ttl = 60, $raw = FALSE)
	{
		$contents = array(
			'time'		=> time(),
			'ttl'		=> $ttl,
			'data'		=> $data
		);

		if (write_file($this->_cache_path.$id, serialize($contents)))
		{
			chmod($this->_cache_path.$id, 0640);
			return TRUE;
		}

		return FALSE;
	}
675919
public function update($id, $data, array $options = []) {
        return $this->query(Query::UPDATE)
            ->where($this->getPrimaryKey(), $id)
            ->save($data, $options);
    }
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);
    }
1184878
public function write($id, $data) : bool
    {
        return (bool)$this->walk(
            'write',
            null,
            [$id, compact('data') + self::$session]
        );
    }
9272
protected function _store($data, $id, $timeToLive)
    {
        if (zend_disk_cache_store($this->_options['namespace'] . '::' . $id,
                                  $data,
                                  $timeToLive) === false) {
            $this->_log('Store operation failed.');
            return false;
        }
        return true;
    }
260415
public function save( $id, $data, $ttl = 0 ) {
		$this->cacheInserts++;
		$this->cache->set( $id, $data, $ttl );
		unset( $this->inMemoryCache[ $id ] );
	}
10884
public function save($data, $id, $tags = array(), $specificLifetime = false)
    {
        $result = parent::save($data, $id, array(), $specificLifetime);
        if ($tags) {
            if (!method_exists($this->_handle, 'tag_add')) {
                \Zend_Cache::throwException('Method tag_add() is not supported by the PHP memcached extension!');
            }
            foreach ($tags as $tag) {
                $this->_handle->tag_add($tag, $id);
            }
            return true;
        }
        return $result;
    }
442541
public function set($id, $data, $lifetime = 0) {
		if (! $this->connectionCheckStatus) {
			$this->addServer();
		}
		
		$id          = $this->prepareId($id);
		$compression = $this->compression ? MEMCACHE_COMPRESSED : 0;
		
		$result = $this->getClient()->set($id, $data, $compression, $lifetime);
		
		if ($result === false && $this->operationsExceptions) {
			throw new OperationFailed('Inserting of the data into the cache failed, ID: "' . $id . '"');
		}
		
		return $result;
	}
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 );
	}
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);
    }