⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Cache
/
Storage
/
View File Name :
Base.php
* @category Horde * @copyright 2010-2017 Horde LLC * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Cache */ abstract class Horde_Cache_Storage_Base implements Serializable { /** * Logger. * * @var Horde_Log_Logger */ protected $_logger; /** * Parameters. * * @var array */ protected $_params = array(); /** * Constructor. * * @param array $params Configuration parameters. */ public function __construct(array $params = array()) { $this->_params = array_merge($this->_params, $params); $this->_initOb(); } /** * Do initialization tasks. */ protected function _initOb() { } /** * Set the logging object. * * @param Horde_Log_Logger $logger Log object. */ public function setLogger($logger) { $this->_logger = $logger; } /** * Retrieve cached data. * * @param string $key Object ID to query. * @param integer $lifetime Lifetime of the object in seconds. * * @return mixed Cached data, or false if none was found. */ abstract public function get($key, $lifetime = 0); /** * Store an object in the cache. * * @param string $key Object ID used as the caching key. * @param mixed $data Data to store in the cache. * @param integer $lifetime Object lifetime - i.e. the time before the * data becomes available for garbage * collection. If 0 will not be GC'd. */ abstract public function set($key, $data, $lifetime = 0); /** * Checks if a given key exists in the cache, valid for the given * lifetime. * * @param string $key Cache key to check. * @param integer $lifetime Lifetime of the key in seconds. * * @return boolean Existence. */ abstract public function exists($key, $lifetime = 0); /** * Expire any existing data for the given key. * * @param string $key Cache key to expire. * * @return boolean Success or failure. */ abstract public function expire($key); /** * Clears all data from the cache. * * @throws Horde_Cache_Exception */ abstract public function clear(); /* Serializable methods. */ /** */ public function serialize() { return serialize(array( $this->_params, $this->_logger )); } /** */ public function unserialize($data) { @list($this->_params, $this->_logger) = @unserialize($data); $this->_initOb(); } }