Habari\MemcacheCache::_set PHP Method

_set() protected method

protected _set ( $name, $value, $expiry, $group, $keep )
    protected function _set($name, $value, $expiry, $group, $keep)
    {
        if (!$this->enabled) {
            return null;
        }
        Plugins::act('cache_set_before', $name, $group, $value, $expiry);
        $file = 'habari:cache:' . $group . ':' . $name;
        $this->memcache->set($file, $value, null, $expiry);
        $this->cache_index[$group][$name] = array('file' => $file, 'expires' => time() + $expiry, 'name' => $name, 'keep' => $keep);
        $this->clear_expired();
        $this->memcache->set('habari:cache:index', $this->cache_index, null, 0);
        Plugins::act('cache_set_after', $name, $group, $value, $expiry);
        return true;
    }