english/libraries/joomla/cache/controller.php
/**
	 * Store data to cache by id and group
	 *
	 * @param   string   $id      The cache data id
	 * @param   string   $group   The cache data group
	 * @param   mixed    $data    The data to store
	 *
	 * @return  boolean  True if cache was stored
	 * @since   11.1
	 */
Store data to cache by id and group
@param   string   $id      The cache data id
@param   string   $group   The cache data group
@param   mixed    $data    The data to store

@return  boolean  True if cache was stored
@since   11.1
Store data to cache by id and group @param string $id The cache data id @param string $group The cache data group @param mixed $data The data to store @return boolean True if cache was stored @since 11 . 1
public function store($data, $id, $group=null)
	{
		$locktest = new stdClass;
		$locktest->locked = null;
		$locktest->locklooped = null;
		$locktest = $this->cache->lock($id, $group);
		if ($locktest->locked == false && $locktest->locklooped == true) {
			$locktest = $this->cache->lock($id, $group);
		}
		$sucess = $this->cache->store(serialize($data), $id,  $group);
		if ($locktest->locked == true) $this->cache->unlock($id, $group);
		return $sucess;
	}
public function store ( $ data , $ id , $ group = null ) { $ locktest = new stdClass ; $ locktest -> locked = null ; $ locktest -> locklooped = null ; $ locktest = $ this -> cache -> lock ( $ id , $ group ) ; if ( $ locktest -> locked == false && $ locktest -> locklooped == true ) { $ locktest = $ this -> cache -> lock ( $ id , $ group ) ; } $ sucess = $ this -> cache -> store ( serialize ( $ data ) , $ id , $ group ) ; if ( $ locktest -> locked == true ) $ this -> cache -> unlock ( $ id , $ group ) ; return $ sucess ; }
Store data to cache by id and group
 @param   string   $id      The cache data id
 @param   string   $group   The cache data group
 @param   mixed    $data    The data to store
Store data to cache by id and group @param string $id The cache data id @param string $group The cache data group @param mixed $data The data to store