@param string $oldText
@param string $newText
@param string $data
@param int    $lifeTime

@return bool
12340
public function save($oldText, $newText, $data, $lifeTime = 0)
    {
        return $this->cacheProvider->save($this->getHashKey($oldText, $newText), $data, $lifeTime);
    }
1187558
@Override
    public boolean hasNext() {
        nextAnswer = findNextAnswer();
        if (nextAnswer != null) return true;

        //iter finished
        if (reiterationRequired) {
            long dAns = answers.size() - oldAns;
            if (dAns != 0 || iter == 0) {
                LOG.debug("iter: {} answers: {} dAns = {}", iter, answers.size(), dAns);
                iter++;
                states.push(query.subGoal(new ConceptMap(), new UnifierImpl(), null, new HashSet<>()));
                oldAns = answers.size();
                return hasNext();
            }
        }

        toComplete.forEach(query.tx().queryCache()::ackCompleteness);

        return false;
    }
1293467
public function set($id, $data, $lifetime = 0) {
		return $this->getBackend()->set($id, json_encode($data), $lifetime);
	}
775195
public function save($id, $data, $lifeTime=0) {
		return $this->driver->save($id, $data, $lifeTime);
	}
916845
public void setTitle(String newText) {
        String oldText = getTitle();
        titleLabel.setText(newText);
        firePropertyChange("title", oldText, newText);
    }
488625
protected function serialize($data, int $lifetime) : string
    {
        return json_encode(
            ['d' => serialize($data), 't' => time() + $lifetime]
        );
    }
1135662
public function set($id, $data, $lifetime = 0) {
		if ($lifetime === 0) {
			$expire = '0000000000';
		} else {
			$expire = time() + $lifetime;
		}
		
		$options = 0;
		
		if (! is_string($data)) {
			$data = serialize($data);
			$options += self::OPTION_SERIALIZED;
		}
		
		if ($this->compression
		&& ($this->compressionTreshold === 0
		|| ($this->compressionTreshold > 0 && strlen($data) > $this->compressionTreshold))) {
			$data = gzcompress($data, $this->compressionLevel);
			$options += self::OPTION_COMPRESSED;
		}
		
		$options = sprintf('%03d', $options);
		$path    = $this->preparePath($id);
		$content = $expire . ';' . $options . ';' . $data;
		
		$result = file_put_contents($path, $content, LOCK_EX);
		
		if ($result === false) {
			throw new OperationFailed('Unable to puth the cache content to: ' . $path);
		}
		
		return true;
	}
919291
protected function diffElements($oldText, $newText, $stripWrappingTags = true)
    {
        $wrapStart = '';
        $wrapEnd = '';

        if ($stripWrappingTags) {
            $pattern = '/(^<[^>]+>)|(<\/[^>]+>$)/iu';
            $matches = array();

            if (preg_match_all($pattern, $newText, $matches)) {
                $wrapStart = isset($matches[0][0]) ? $matches[0][0] : '';
                $wrapEnd = isset($matches[0][1]) ? $matches[0][1] : '';
            }
            $oldText = preg_replace($pattern, '', $oldText);
            $newText = preg_replace($pattern, '', $newText);
        }

        $diff = self::create($oldText, $newText, $this->config);

        return $wrapStart.$diff->build().$wrapEnd;
    }
573516
private function _checkDeprecation($text) {
		if ($this->_isActive('checkDeprecation')) {
			$key = strtolower($text);
			if (array_key_exists($key, $this->_deprecatedFunctions)) {
				$msg = $this->_getMessage('DEPRECATED_FUNCTION', $this->_deprecatedFunctions[$key]['old'], $this->_deprecatedFunctions[$key]['version'], $this->_deprecatedFunctions[$key]['new']);
				$this->_writeError('checkDeprecation', $msg);
			}
		}
	}
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;
	}
743939
@Override
    public void setAsText(final String text) {
        if (BeanUtils.isNull(text)) {
            setValue(null);
            return;
        }
        Object newValue = Boolean.valueOf(text);
        setValue(newValue);
    }
1343893
public function inboundText( $data=null ){
		if(!$data) $data = $_GET;

		if(!isset($data['text'], $data['msisdn'], $data['to'])) return false;

		// Get the relevant data
		$this->to = $data['to'];
		$this->from = $data['msisdn'];
		$this->text = $data['text'];
		$this->network = (isset($data['network-code'])) ? $data['network-code'] : '';
		$this->message_id = $data['messageId'];

		// Flag that we have an inbound message
		$this->inbound_message = true;

		return true;
	}
1042134
private function _prepareData($data, $lifetime, $priority)
    {
        $lt = $lifetime;
        if ($lt === null) {
            $lt = 9999999999;
        }
        return serialize(array(
            'data' => $data,
            'lifetime' => $lifetime,
            'expire' => time() + $lt,
            'priority' => $priority
        ));
    }
928630
public boolean push(String newText) {
        if (stackTop < stack.length - 1) {
            stack[stackTop++] = newText;
            return true;
        } else {
            return false;
        }
    }
866013
private function replace(string $text = null, array $data = null)
    {
        if ($text && is_array($data) && sizeof($data) > 0 && $text && is_numeric(array_keys($data)[0])) {
            return vsprintf($text, $data);
        } elseif ($text && !is_null($data) && sizeof($data) > 0) {
            return strtr($text, $data);
        } else {
            return $text ?? null;
        }
    }
44325
public function setMany(array $data, $lifetime = 0) {
		foreach ($data as $id => $value) {
			$this->set($id, $value, $lifetime);
		}
		
		return true;
	}
887801
public function save($key, $data, $lifeTime)
    {
        $this->_server->set($this->_namespace . '_' . $key, $data);
        return true;
    }