Skip to content

Commit

Permalink
nuova versione per il cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
januabisconti committed Dec 20, 2024
1 parent 41190cb commit 62439eb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/SuperCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ public function put(string $key, mixed $value, ?int $ttl = null, ?string $connec
{
// Calcola la chiave con o senza namespace in base alla configurazione
$finalKey = $this->getFinalKey($key);
/**
* $this->redis->getRedisConnection($connection_name)->set($finalKey, $this->serializeForRedis($value));
*
* if ($ttl !== null) {
* $this->redis->getRedisConnection($connection_name)->expire($finalKey, $ttl);
* }
*/
if ($ttl !== null) {
$this->redis->getRedisConnection($connection_name)->setEx('{' . $finalKey . '}', $ttl, $this->serializeForRedis($value));

Expand Down

0 comments on commit 62439eb

Please sign in to comment.