!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Cache/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Cache;

use 
Memcached;
use 
Illuminate\Contracts\Cache\Store;

class 
MemcachedStore extends TaggableStore implements Store
{
    
/**
     * The Memcached instance.
     *
     * @var \Memcached
     */
    
protected $memcached;

    
/**
     * A string that should be prepended to keys.
     *
     * @var string
     */
    
protected $prefix;

    
/**
     * Create a new Memcached store.
     *
     * @param  \Memcached  $memcached
     * @param  string      $prefix
     * @return void
     */
    
public function __construct($memcached$prefix '')
    {
        
$this->setPrefix($prefix);
        
$this->memcached $memcached;
    }

    
/**
     * Retrieve an item from the cache by key.
     *
     * @param  string|array  $key
     * @return mixed
     */
    
public function get($key)
    {
        
$value $this->memcached->get($this->prefix.$key);

        if (
$this->memcached->getResultCode() == 0) {
            return 
$value;
        }
    }

    
/**
     * Retrieve multiple items from the cache by key.
     *
     * Items not found in the cache will have a null value.
     *
     * @param  array  $keys
     * @return array
     */
    
public function many(array $keys)
    {
        
$prefixedKeys array_map(function ($key) {
            return 
$this->prefix.$key;
        }, 
$keys);

        
$values $this->memcached->getMulti($prefixedKeysnullMemcached::GET_PRESERVE_ORDER);

        if (
$this->memcached->getResultCode() != 0) {
            return 
array_fill_keys($keysnull);
        }

        return 
array_combine($keys$values);
    }

    
/**
     * Store an item in the cache for a given number of minutes.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @param  int     $minutes
     * @return void
     */
    
public function put($key$value$minutes)
    {
        
$this->memcached->set($this->prefix.$key$value$minutes 60);
    }

    
/**
     * Store multiple items in the cache for a given number of minutes.
     *
     * @param  array  $values
     * @param  int  $minutes
     * @return void
     */
    
public function putMany(array $values$minutes)
    {
        
$prefixedValues = [];

        foreach (
$values as $key => $value) {
            
$prefixedValues[$this->prefix.$key] = $value;
        }

        
$this->memcached->setMulti($prefixedValues$minutes 60);
    }

    
/**
     * Store an item in the cache if the key doesn't exist.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @param  int     $minutes
     * @return bool
     */
    
public function add($key$value$minutes)
    {
        return 
$this->memcached->add($this->prefix.$key$value$minutes 60);
    }

    
/**
     * Increment the value of an item in the cache.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return int|bool
     */
    
public function increment($key$value 1)
    {
        return 
$this->memcached->increment($this->prefix.$key$value);
    }

    
/**
     * Decrement the value of an item in the cache.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return int|bool
     */
    
public function decrement($key$value 1)
    {
        return 
$this->memcached->decrement($this->prefix.$key$value);
    }

    
/**
     * Store an item in the cache indefinitely.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return void
     */
    
public function forever($key$value)
    {
        
$this->put($key$value0);
    }

    
/**
     * Remove an item from the cache.
     *
     * @param  string  $key
     * @return bool
     */
    
public function forget($key)
    {
        return 
$this->memcached->delete($this->prefix.$key);
    }

    
/**
     * Remove all items from the cache.
     *
     * @return void
     */
    
public function flush()
    {
        
$this->memcached->flush();
    }

    
/**
     * Get the underlying Memcached connection.
     *
     * @return \Memcached
     */
    
public function getMemcached()
    {
        return 
$this->memcached;
    }

    
/**
     * Get the cache key prefix.
     *
     * @return string
     */
    
public function getPrefix()
    {
        return 
$this->prefix;
    }

    
/**
     * Set the cache key prefix.
     *
     * @param  string  $prefix
     * @return void
     */
    
public function setPrefix($prefix)
    {
        
$this->prefix = ! empty($prefix) ? $prefix.':' '';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.023 ]--