english/libraries/joomla/cache/storage/memcache.php
/**
	 * Clean cache for a group given a mode.
	 *
	 * @param   string  $group  The cache data group
	 * @param   string  $mode   The mode for cleaning cache [group|notgroup]
	 *                          group mode    : cleans all cache in the group
	 *                          notgroup mode : cleans all cache not in the group
	 *
	 * @return  boolean  True on success, false otherwise
	 *
	 * @since   11.1
	 */
Clean cache for a group given a mode.
@param   string  $group  The cache data group
@param   string  $mode   The mode for cleaning cache [group|notgroup]
group mode    : cleans all cache in the group
notgroup mode : cleans all cache not in the group

@return  boolean  True on success, false otherwise


Clean cache for a group given a mode . @param string $group The cache data group @param string $mode The mode for cleaning cache [ group|notgroup ] group mode : cleans all cache in the group notgroup mode : cleans all cache not in the group @return boolean True on success false otherwise
public function clean($group, $mode = null)
	{
		if (!$this->lockindex()) {
			return false;
		}
		$index = self::$_db->get($this->_hash.'-index');
		if ($index === false) {
			$index = array();
		}
		$secret = $this->_hash;
		foreach ($index as $key=>$value) {
			if (strpos($value->name, $secret.'-cache-'.$group.'-')===0 xor $mode != 'group') {
				self::$_db->delete($value->name,0);
				unset ($index[$key]);
			}
		}
		self::$_db->replace($this->_hash.'-index', $index , 0, 0);
		$this->unlockindex();
		return true;
	}
public function clean ( $ group , $ mode = null ) { if ( ! $ this -> lockindex ( ) ) { return false ; } $ index = self :: $ _db -> get ( $ this -> _hash . '-index' ) ; if ( $ index === false ) { $ index = array ( ) ; } $ secret = $ this -> _hash ; foreach ( $ index as $ key => $ value ) { if ( strpos ( $ value -> name , $ secret . '-cache-' . $ group . '-' ) === 0 xor $ mode != 'group' ) { self :: $ _db -> delete ( $ value -> name , 0 ) ; unset ( $ index [ $ key ] ) ; } } self :: $ _db -> replace ( $ this -> _hash . '-index' , $ index , 0 , 0 ) ; $ this -> unlockindex ( ) ; return true ; }
Clean cache for a group given a mode.
Clean cache for a group given a mode .