Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
27 | 2 | 3 | 0.991 | class_member_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 27 | 123 | libraries/joomla/cache/storage/apc.php |
2 | 27 | 139 | libraries/joomla/cache/storage/eaccelerator.php |
| ||||
/** * Set expire time on each call since memcache sets it on cache creation. * * @access private * * @param string $key Cache key to expire. * @param integer $lifetime Lifetime of the data in seconds. */ function _setExpire($key) { $lifetime= $this->_lifetime; $expire= apc_fetch($key . '_expire'); // set prune period if ($expire+ $lifetime< time()) { apc_delete($key); apc_delete($key . '_expire'); } else { apc_store($key . '_expire', time()); } } /** * Get a cache_id string from an id/group pair * * @access private * @param string $id The cache data id * @param string $group The cache data group * @return string The cache_id string * @since 1.5 */ function _getCacheId($id, $group) { $name= md5($this->_application . '-' . $id . '-' . $this->_hash . '-' . $this->_language); return 'cache_' . $group . '-' . $name; } |
| ||||
/** * Set expire time on each call since memcache sets it on cache creation. * * @access private * * @param string $key Cache key to expire. * @param integer $lifetime Lifetime of the data in seconds. */ function _setExpire($key) { $lifetime= $this->_lifetime; $expire= eaccelerator_get($key . '_expire'); // set prune period if ($expire+ $lifetime< time()) { eaccelerator_rm($key); eaccelerator_rm($key . '_expire'); } else { eaccelerator_put($key . '_expire', time()); } } /** * Get a cache_id string from an id/group pair * * @access private * @param string $id The cache data id * @param string $group The cache data group * @return string The cache_id string * @since 1.5 */ function _getCacheId($id, $group) { $name= md5($this->_application . '-' . $id . '-' . $this->_hash . '-' . $this->_language); return 'cache_' . $group . '-' . $name; } |
| |||
/** * Set expire time on each call since memcache sets it on cache creation. * * @access private * * @param string $key Cache key to expire. * @param integer $lifetime Lifetime of the data in seconds. */ function _setExpire($key) { $lifetime=$this->_lifetime; $expire= [[#variable3c659e40]]($key . '_expire'); // set prune period if ($expire+$lifetime<time()) { [[#variable45fa2ee0]]($key); [[#variable45fa2ee0]]($key . '_expire'); } else { [[#variable3c659da0]]($key . '_expire',time()); } } /** * Get a cache_id string from an id/group pair * * @access private * @param string $id The cache data id * @param string $group The cache data group * @return string The cache_id string * @since 1.5 */ function _getCacheId($id,$group) { $name=md5($this->_application . '-' . $id . '-' . $this->_hash . '-' . $this->_language); return 'cache_' . $group . '-' . $name; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3c659e40]] | eaccelerator_get |
1 | 2 | [[#3c659e40]] | apc_fetch |
2 | 1 | [[#45fa2ee0]] | eaccelerator_rm |
2 | 2 | [[#45fa2ee0]] | apc_delete |
3 | 1 | [[#3c659da0]] | eaccelerator_put |
3 | 2 | [[#3c659da0]] | apc_store |