Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
49 | 2 | 5 | 0.970 | class_member_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 50 | 63 | libraries/joomla/cache/storage/apc.php |
2 | 49 | 68 | libraries/joomla/cache/storage/eaccelerator.php |
| ||||
/** * Store the data to APC by id and group * * @access public * @param string $id The cache data id * @param string $group The cache data group * @param string $data The data to store in cache * @return boolean True on success, false otherwise * @since 1.5 */ function store($id, $group, $data) { $cache_id= $this->_getCacheId($id, $group); apc_store($cache_id . '_expire', time()); return apc_store($cache_id, $data, $this->_lifetime); } /** * Remove a cached data entry by id and group * * @access public * @param string $id The cache data id * @param string $group The cache data group * @return boolean True on success, false otherwise * @since 1.5 */ function remove($id, $group) { $cache_id= $this->_getCacheId($id, $group); apc_delete($cache_id . '_expire'); return apc_delete($cache_id); } /** * Clean cache for a group given a mode. * * group mode : cleans all cache in the group * notgroup mode : cleans all cache not in the group * * @access public * @param string $group The cache data group * @param string $mode The mode for cleaning cache [group|notgroup] * @return boolean True on success, false otherwise * @since 1.5 */ function clean($group, $mode) { return TRUE; } /** * Test to see if the cache storage is available. * * @static * @access public * @return boolean True on success, false otherwise. */ function test() { return extension_loaded('apc'); } |
| ||||
/** * Store the data to by id and group * * @access public * @param string $id The cache data id * @param string $group The cache data group * @param string $data The data to store in cache * @return boolean True on success, false otherwise * @since 1.5 */ function store($id, $group, $data) { $cache_id= $this->_getCacheId($id, $group); eaccelerator_put($cache_id . '_expire', time()); return eaccelerator_put($cache_id, $data, $this->_lifetime); } /** * Remove a cached data entry by id and group * * @access public * @param string $id The cache data id * @param string $group The cache data group * @return boolean True on success, false otherwise * @since 1.5 */ function remove($id, $group) { $cache_id= $this->_getCacheId($id, $group); eaccelerator_rm($cache_id . '_expire'); return eaccelerator_rm($cache_id); } /** * Clean cache for a group given a mode. * * group mode : cleans all cache in the group * notgroup mode : cleans all cache not in the group * * @access public * @param string $group The cache data group * @param string $mode The mode for cleaning cache [group|notgroup] * @return boolean True on success, false otherwise * @since 1.5 */ function clean($group, $mode) { return TRUE; } /** * Garbage collect expired cache data * * @access public * @return boolean True on success, false otherwise. */ function gc() { return eaccelerator_gc(); } |
| |||
/** * Store the data to by id and group * * @access public * @param string $id The cache data id * @param string $group The cache data group * @param string $data The data to store in cache * @return boolean True on success, false otherwise * @since 1.5 */ /** * Store the data to APC by id and group * * @access public * @param string $id The cache data id * @param string $group The cache data group * @param string $data The data to store in cache * @return boolean True on success, false otherwise * @since 1.5 */ function store($id,$group,$data) { $cache_id=$this->_getCacheId($id,$group); [[#variable4f9351c0]]($cache_id . '_expire',time()); return [[#variable4f9351c0]]($cache_id,$data,$this->_lifetime); } /** * Remove a cached data entry by id and group * * @access public * @param string $id The cache data id * @param string $group The cache data group * @return boolean True on success, false otherwise * @since 1.5 */ function remove($id,$group) { $cache_id=$this->_getCacheId($id,$group); [[#variable4f9352e0]]($cache_id . '_expire'); return [[#variable4f9352e0]]($cache_id); } /** * Clean cache for a group given a mode. * * group mode : cleans all cache in the group * notgroup mode : cleans all cache not in the group * * @access public * @param string $group The cache data group * @param string $mode The mode for cleaning cache [group|notgroup] * @return boolean True on success, false otherwise * @since 1.5 */ function clean($group,$mode) { return TRUE; } /** * Garbage collect expired cache data * * @access public * @return boolean True on success, false otherwise. */ /** * Test to see if the cache storage is available. * * @static * @access public * @return boolean True on success, false otherwise. */ function [[#variable4f9351a0]]() { return [[#variable4ce11860]]( [[#variable4f935120]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4f9351c0]] | eaccelerator_put |
1 | 2 | [[#4f9351c0]] | apc_store |
2 | 1 | [[#4f9352e0]] | eaccelerator_rm |
2 | 2 | [[#4f9352e0]] | apc_delete |
3 | 1 | [[#4f9351a0]] | gc |
3 | 2 | [[#4f9351a0]] | test |
4 | 1 | [[#4ce11860]] | eaccelerator_gc |
4 | 2 | [[#4ce11860]] | extension_loaded |
5 | 1 | [[#4f935120]] | |
5 | 2 | [[#4f935120]] | 'apc' |