RedisIncrementer example

if ($redisUrl === '') {
            static::markTestSkipped('Redis is not available');
        }

        $factory = new RedisConnectionFactory();

        $redisClient = $factory->create($redisUrl);
        static::assertInstanceOf(\Redis::class$redisClient);

        $this->redis = $redisClient;
        $this->incrementer = new RedisIncrementer($this->redis);
        $this->incrementer->setPool('test');
    }

    protected function tearDown(): void
    {
        parent::tearDown();

        $this->redis?->flushAll();
    }

    public function testIncrement(): void
    {
Home | Imprint | This part of the site doesn't use cookies.