OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
inc
/
simplepie
/
library
/
SimplePie
/
Cache
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/22/2020 06:22:25 AM
rwxr-xr-x
📄
0f5e21d9d8354d10ea23d99101259ba2.spc
41.47 KB
03/01/2025 11:19:30 PM
rw-r--r--
📄
10ae571a6266a8e21b0fbb15f552a1cb.spc
13.15 KB
03/01/2025 11:19:32 PM
rw-r--r--
📄
1469d584e9747d132077c9df3cda6c97.spc
359.6 KB
03/01/2025 11:19:30 PM
rw-r--r--
📄
1f5e96e3f1a01f95ab611ec1458fe470.spc
147.31 KB
03/01/2025 11:19:35 PM
rw-r--r--
📄
242d3dabf79d13154fcc384ff8b2d25e.spc
113.49 KB
03/01/2025 11:19:29 PM
rw-r--r--
📄
2db16a36af8daf383cb739dd57a44d90.spc
129.72 KB
03/01/2025 11:19:34 PM
rw-r--r--
📄
3ca755a78dd04c91695e5fcee845991f.spc
3.88 KB
03/01/2025 11:19:39 PM
rw-r--r--
📄
51447ae67b6d856982df0ea0496cf24b.spc
18.95 KB
03/02/2025 05:02:46 AM
rw-r--r--
📄
522fe4b133aa24cb42c79b24ecb5c838.spc
133.27 KB
06/09/2025 07:46:42 AM
rw-r--r--
📄
5c744a4198beb7326dcf101f961486b4.spc
57.59 KB
03/01/2025 11:19:27 PM
rw-r--r--
📄
5fc9bcdda34ec7e72510b177a0164b7b.spc
557.78 KB
03/01/2025 11:19:29 PM
rw-r--r--
📄
76e6555adc909bfac627ceaba91df128.spc
167.29 KB
03/01/2025 11:19:39 PM
rw-r--r--
📄
78ea3147f80e467c8740931f2f934bee.spc
163 bytes
06/09/2025 07:46:42 AM
rw-r--r--
📄
828f89042b67ae6fca8657110997c302.spc
3.75 KB
03/01/2025 11:19:31 PM
rw-r--r--
📄
8bbfe139e67e5f738b9ffcb18a7c5b86.spc
38.02 KB
01/25/2025 06:27:56 AM
rw-r--r--
📄
925665a1ef421d5783a6690aaf7df881.spc
100.95 KB
06/09/2025 07:46:42 AM
rw-r--r--
📄
Base.php
3.35 KB
04/17/2017 07:29:31 AM
rwxrwxrwx
📄
DB.php
4.6 KB
04/17/2017 07:29:31 AM
rwxrwxrwx
📄
File.php
4.19 KB
04/17/2017 07:29:31 AM
rwxrwxrwx
📄
Memcache.php
4.81 KB
04/17/2017 07:29:31 AM
rwxrwxrwx
📄
Memcached.php
5.27 KB
04/17/2017 07:29:31 AM
rwxrwxrwx
📄
MySQL.php
12.67 KB
04/17/2017 07:29:31 AM
rwxrwxrwx
📄
Redis.php
3.77 KB
04/17/2017 07:29:31 AM
rwxrwxrwx
📄
a40a776457ebfa5dcaef5c99f859250c.spc
128.07 KB
06/09/2025 07:46:42 AM
rw-r--r--
📄
a576de3f9423beb68b07b459f555f5d8.spc
85.9 KB
03/01/2025 11:19:29 PM
rw-r--r--
📄
a989cfbb4ebcd4ea5aede2f8d18f6b80.spc
241.59 KB
03/01/2025 11:19:29 PM
rw-r--r--
📄
b44b9e448df189cee8d7c7774273267b.spc
65.99 KB
06/09/2025 07:46:42 AM
rw-r--r--
📄
b8e453c2d1e800f71ad2abe6f7862197.spc
199 bytes
03/01/2025 11:19:31 PM
rw-r--r--
📄
c5bf94a976a06fd3da7d2939ef9b2e93.spc
498.43 KB
03/01/2025 11:19:36 PM
rw-r--r--
📄
c5e0e65569698bc9792cddb93cca6c68.spc
120.91 KB
03/01/2025 11:19:31 PM
rw-r--r--
📄
d8eefb559112e58cb4dab21367a186e2.spc
343.56 KB
03/01/2025 11:19:36 PM
rw-r--r--
📄
dad664e4362c3317a36adbd6bfa95d4c.spc
58.98 KB
03/01/2025 11:19:28 PM
rw-r--r--
📄
ea703f3e5c39f76615e5a8b975f794a2.spc
19.24 KB
03/02/2025 05:02:45 AM
rw-r--r--
📄
f718d57993920295b2d6ec7c8028db7b.spc
79.36 KB
03/01/2025 11:19:36 PM
rw-r--r--
📄
fbc57cfd03bf1e4ef525660536f2fc4c.spc
18.9 KB
03/02/2025 05:02:46 AM
rw-r--r--
Editing: Redis.php
Close
<?php /** * SimplePie Redis Cache Extension * * @package SimplePie * @author Jan Kozak <galvani78@gmail.com> * @link http://galvani.cz/ * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version 0.2.9 */ /** * Caches data to redis * * Registered for URLs with the "redis" protocol * * For example, `redis://localhost:6379/?timeout=3600&prefix=sp_&dbIndex=0` will * connect to redis on `localhost` on port 6379. All tables will be * prefixed with `simple_primary-` and data will expire after 3600 seconds * * @package SimplePie * @subpackage Caching * @uses Redis */ class SimplePie_Cache_Redis implements SimplePie_Cache_Base { /** * Redis instance * * @var \Redis */ protected $cache; /** * Options * * @var array */ protected $options; /** * Cache name * * @var string */ protected $name; /** * Cache Data * * @var type */ protected $data; /** * Create a new cache object * * @param string $location Location string (from SimplePie::$cache_location) * @param string $name Unique ID for the cache * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data */ public function __construct($location, $name, $options = null) { //$this->cache = \flow\simple\cache\Redis::getRedisClientInstance(); $parsed = SimplePie_Cache::parse_URL($location); $redis = new Redis(); $redis->connect($parsed['host'], $parsed['port']); $this->cache = $redis; if (!is_null($options) && is_array($options)) { $this->options = $options; } else { $this->options = array ( 'prefix' => 'rss:simple_primary:', 'expire' => 0, ); } $this->name = $this->options['prefix'] . $name; } /** * @param \Redis $cache */ public function setRedisClient(\Redis $cache) { $this->cache = $cache; } /** * Save data to the cache * * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property * @return bool Successfulness */ public function save($data) { if ($data instanceof SimplePie) { $data = $data->data; } $response = $this->cache->set($this->name, serialize($data)); if ($this->options['expire']) { $this->cache->expire($this->name, $this->options['expire']); } return $response; } /** * Retrieve the data saved to the cache * * @return array Data for SimplePie::$data */ public function load() { $data = $this->cache->get($this->name); if ($data !== false) { return unserialize($data); } return false; } /** * Retrieve the last modified time for the cache * * @return int Timestamp */ public function mtime() { $data = $this->cache->get($this->name); if ($data !== false) { return time(); } return false; } /** * Set the last modified time to the current time * * @return bool Success status */ public function touch() { $data = $this->cache->get($this->name); if ($data !== false) { $return = $this->cache->set($this->name, $data); if ($this->options['expire']) { return $this->cache->expire($this->name, $this->ttl); } return $return; } return false; } /** * Remove the cache * * @return bool Success status */ public function unlink() { return $this->cache->set($this->name, null); } }