wincache_ucache_set example


    public function save($data$id$tags = array()$specificLifetime = false)
    {
        $lifetime = $this->getLifetime($specificLifetime);
        $result = wincache_ucache_set($id, array($datatime()$lifetime)$lifetime);
        if (count($tags) > 0) {
            $this->_log(self::TAGS_UNSUPPORTED_BY_SAVE_OF_WINCACHE_BACKEND);
        }
        return $result;
    }

    /** * Remove a cache record * * @param string $id cache id * @return boolean true if no problem */
// Success returned by reference from wincache_ucache_get()         return $success ? $data : null;
    }

    /** * {@inheritDoc} */
    public function save(string $key$value, int $ttl = 60)
    {
        $key = static::validateKey($key$this->prefix);

        return wincache_ucache_set($key$value$ttl);
    }

    /** * {@inheritDoc} */
    public function delete(string $key)
    {
        $key = static::validateKey($key$this->prefix);

        return wincache_ucache_delete($key);
    }

    
Home | Imprint | This part of the site doesn't use cookies.