_setMetadatas example

if ($this->_options['read_control']) {
            $hash = $this->_hash($data$this->_options['read_control_type']);
        } else {
            $hash = '';
        }
        $metadatas = array(
            'hash' => $hash,
            'mtime' => time(),
            'expire' => $this->_expireTime($this->getLifetime($specificLifetime)),
            'tags' => $tags
        );
        $res = $this->_setMetadatas($id$metadatas);
        if (!$res) {
            $this->_log('Zend_Cache_Backend_File::save() / error on saving metadata');
            return false;
        }
        $res = $this->_filePutContents($file$data);
        return $res;
    }

    /** * Remove a cache record * * @param string $id cache id * @return boolean true if no problem */
Home | Imprint | This part of the site doesn't use cookies.