Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
mfa
/
vendor
/
palepurple
/
rate-limit
/
src
/
Adapter
/
File Content:
Predis.php
<?php namespace PalePurple\RateLimit\Adapter; /** * Predis adapter */ class Predis extends \PalePurple\RateLimit\Adapter { /** * @var \Predis\ClientInterface */ protected $redis; public function __construct(\Predis\ClientInterface $client) { $this->redis = $client; } /** * @param string $key * @param float $value * @param int $ttl * @return bool */ public function set($key, $value, $ttl) { return $this->redis->set($key, (string) $value, "ex", $ttl); } /** * @return float * @param string $key */ public function get($key) { return (float)$this->redis->get($key); } public function exists($key) { return (bool)$this->redis->exists($key); } public function del($key) { return (bool)$this->redis->del([$key]); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
APC.php
520 bytes
0644
APCu.php
512 bytes
0644
Memcached.php
921 bytes
0644
Predis.php
892 bytes
0644
Redis.php
1322 bytes
0644
Stash.php
1208 bytes
0644
N4ST4R_ID | Naxtarrr