!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/doctrine/cache/lib/Doctrine/Common/Cache/   drwxr-xr-x
Free 13.01 GB of 57.97 GB (22.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ChainCache.php (4.84 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Doctrine\Common\Cache;

use 
Traversable;

use function 
array_values;
use function 
count;
use function 
iterator_to_array;

/**
 * Cache provider that allows to easily chain multiple cache providers
 *
 * @deprecated Deprecated without replacement in doctrine/cache 1.11. This class will be dropped in 2.0
 */
class ChainCache extends CacheProvider
{
    
/** @var CacheProvider[] */
    
private $cacheProviders = [];

    
/** @var int */
    
private $defaultLifeTimeForDownstreamCacheProviders 0;

    
/**
     * @param CacheProvider[] $cacheProviders
     */
    
public function __construct($cacheProviders = [])
    {
        
$this->cacheProviders $cacheProviders instanceof Traversable
            
iterator_to_array($cacheProvidersfalse)
            : 
array_values($cacheProviders);
    }

    public function 
setDefaultLifeTimeForDownstreamCacheProviders(int $defaultLifeTimeForDownstreamCacheProviders): void
    
{
        
$this->defaultLifeTimeForDownstreamCacheProviders $defaultLifeTimeForDownstreamCacheProviders;
    }

    
/**
     * {@inheritDoc}
     */
    
public function setNamespace($namespace)
    {
        
parent::setNamespace($namespace);

        foreach (
$this->cacheProviders as $cacheProvider) {
            
$cacheProvider->setNamespace($namespace);
        }
    }

    
/**
     * {@inheritDoc}
     */
    
protected function doFetch($id)
    {
        foreach (
$this->cacheProviders as $key => $cacheProvider) {
            if (
$cacheProvider->doContains($id)) {
                
$value $cacheProvider->doFetch($id);

                
// We populate all the previous cache layers (that are assumed to be faster)
                
for ($subKey $key 1$subKey >= 0$subKey--) {
                    
$this->cacheProviders[$subKey]->doSave($id$value$this->defaultLifeTimeForDownstreamCacheProviders);
                }

                return 
$value;
            }
        }

        return 
false;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function doFetchMultiple(array $keys)
    {
        
/** @var CacheProvider[] $traversedProviders */
        
$traversedProviders = [];
        
$keysCount          count($keys);
        
$fetchedValues      = [];

        foreach (
$this->cacheProviders as $key => $cacheProvider) {
            
$fetchedValues $cacheProvider->doFetchMultiple($keys);

            
// We populate all the previous cache layers (that are assumed to be faster)
            
if (count($fetchedValues) === $keysCount) {
                foreach (
$traversedProviders as $previousCacheProvider) {
                    
$previousCacheProvider->doSaveMultiple($fetchedValues$this->defaultLifeTimeForDownstreamCacheProviders);
                }

                return 
$fetchedValues;
            }

            
$traversedProviders[] = $cacheProvider;
        }

        return 
$fetchedValues;
    }

    
/**
     * {@inheritDoc}
     */
    
protected function doContains($id)
    {
        foreach (
$this->cacheProviders as $cacheProvider) {
            if (
$cacheProvider->doContains($id)) {
                return 
true;
            }
        }

        return 
false;
    }

    
/**
     * {@inheritDoc}
     */
    
protected function doSave($id$data$lifeTime 0)
    {
        
$stored true;

        foreach (
$this->cacheProviders as $cacheProvider) {
            
$stored $cacheProvider->doSave($id$data$lifeTime) && $stored;
        }

        return 
$stored;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function doSaveMultiple(array $keysAndValues$lifetime 0)
    {
        
$stored true;

        foreach (
$this->cacheProviders as $cacheProvider) {
            
$stored $cacheProvider->doSaveMultiple($keysAndValues$lifetime) && $stored;
        }

        return 
$stored;
    }

    
/**
     * {@inheritDoc}
     */
    
protected function doDelete($id)
    {
        
$deleted true;

        foreach (
$this->cacheProviders as $cacheProvider) {
            
$deleted $cacheProvider->doDelete($id) && $deleted;
        }

        return 
$deleted;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function doDeleteMultiple(array $keys)
    {
        
$deleted true;

        foreach (
$this->cacheProviders as $cacheProvider) {
            
$deleted $cacheProvider->doDeleteMultiple($keys) && $deleted;
        }

        return 
$deleted;
    }

    
/**
     * {@inheritDoc}
     */
    
protected function doFlush()
    {
        
$flushed true;

        foreach (
$this->cacheProviders as $cacheProvider) {
            
$flushed $cacheProvider->doFlush() && $flushed;
        }

        return 
$flushed;
    }

    
/**
     * {@inheritDoc}
     */
    
protected function doGetStats()
    {
        
// We return all the stats from all adapters
        
$stats = [];

        foreach (
$this->cacheProviders as $cacheProvider) {
            
$stats[] = $cacheProvider->doGetStats();
        }

        return 
$stats;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0069 ]--