CloneSet345


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


Clone Instance
2
Line Count
27
Source Line
139
Source File
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=          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;
              }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c659e40]]
eaccelerator_get 
12[[#3c659e40]]
apc_fetch 
21[[#45fa2ee0]]
eaccelerator_rm 
22[[#45fa2ee0]]
apc_delete 
31[[#3c659da0]]
eaccelerator_put 
32[[#3c659da0]]
apc_store