CloneSet291


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
49250.970class_member_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15063
libraries/joomla/cache/storage/apc.php
24968
libraries/joomla/cache/storage/eaccelerator.php
Clone Instance
1
Line Count
50
Source Line
63
Source File
libraries/joomla/cache/storage/apc.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');
              }


Clone Instance
2
Line Count
49
Source Line
68
Source File
libraries/joomla/cache/storage/eaccelerator.php

        /**
         * 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();
              }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4f9351c0]]
eaccelerator_put 
12[[#4f9351c0]]
apc_store 
21[[#4f9352e0]]
eaccelerator_rm 
22[[#4f9352e0]]
apc_delete 
31[[#4f9351a0]]
gc 
32[[#4f9351a0]]
test 
41[[#4ce11860]]
eaccelerator_gc 
42[[#4ce11860]]
extension_loaded 
51[[#4f935120]]
52[[#4f935120]]
'apc'