_keyFromTag example

$this->_redis->expire($this->_keyFromItemTags($id)$lifetime);
            } else {
                $redis = $this->_redis->persist($this->_keyFromItemTags($id));
            }

            return $return;
        }

        $tagsTTL = [];
        foreach ($tags as $tag) {
            if ($tag) {
                if (!$this->_redis->exists($this->_keyFromTag($tag))) {
                    $tagsTTL[$tag] = false;
                } else {
                    $tagsTTL[$tag] = $this->_redis->ttl($this->_keyFromTag($tag));
                }
            }
        }

        $redis = $this->_redis->multi();
        $return = [];
        if (!$redis) {
            $return[] = $this->_redis->del($this->_keyFromItemTags($id));
        }
Home | Imprint | This part of the site doesn't use cookies.