Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Swoole\Cache; /** * Memcachememcachememcached * @author Tianfeng.Han * ..
Decoded Output download
<?php
namespace Swoole\Cache;
/**
* Memcachememcachememcached
* @author Tianfeng.Han
* @package Swoole
* @subpackage cache
*/
class SaeMemcache implements \Swoole\IFace\Cache
{
public $multi = false;
//
static $compress = MEMCACHE_COMPRESSED;
public $cache;
function __construct($configs)
{
$this->cache = \memcache_init();
if($this->cache === false)
{
throw new \Exception("SaeMemcache init fail", 1);
}
}
/**
*
* @see libs/system/ICache#get($key)
*/
function get($key)
{
return $this->cache->get($key);
}
function set($key, $value, $expire=0)
{
return $this->cache->set($key, $value, self::$compress, $expire);
}
function delete($key)
{
return $this->cache->delete($key);
}
} ?>
Did this file decode correctly?
Original Code
<?php
namespace Swoole\Cache;
/**
* Memcachememcachememcached
* @author Tianfeng.Han
* @package Swoole
* @subpackage cache
*/
class SaeMemcache implements \Swoole\IFace\Cache
{
public $multi = false;
//
static $compress = MEMCACHE_COMPRESSED;
public $cache;
function __construct($configs)
{
$this->cache = \memcache_init();
if($this->cache === false)
{
throw new \Exception("SaeMemcache init fail", 1);
}
}
/**
*
* @see libs/system/ICache#get($key)
*/
function get($key)
{
return $this->cache->get($key);
}
function set($key, $value, $expire=0)
{
return $this->cache->set($key, $value, self::$compress, $expire);
}
function delete($key)
{
return $this->cache->delete($key);
}
}
Function Calls
None |
Stats
MD5 | 0392908015df878bd2bd3cab972058e0 |
Eval Count | 0 |
Decode Time | 77 ms |