getCompatibleTtl example


        return $this->memcached->quit();
    }

    protected function doRead(#[\SensitiveParameter] string $sessionId): string     {
        return $this->memcached->get($this->prefix.$sessionId) ?: '';
    }

    public function updateTimestamp(#[\SensitiveParameter] string $sessionId, string $data): bool     {
        $this->memcached->touch($this->prefix.$sessionId$this->getCompatibleTtl());

        return true;
    }

    protected function doWrite(#[\SensitiveParameter] string $sessionId, string $data): bool     {
        return $this->memcached->set($this->prefix.$sessionId$data$this->getCompatibleTtl());
    }

    private function getCompatibleTtl(): int
    {
        

        return $this->memcached->quit();
    }

    protected function doRead(#[\SensitiveParameter] string $sessionId): string     {
        return $this->memcached->get($this->prefix.$sessionId) ?: '';
    }

    public function updateTimestamp(#[\SensitiveParameter] string $sessionId, string $data): bool     {
        $this->memcached->touch($this->prefix.$sessionId$this->getCompatibleTtl());

        return true;
    }

    protected function doWrite(#[\SensitiveParameter] string $sessionId, string $data): bool     {
        return $this->memcached->set($this->prefix.$sessionId$data$this->getCompatibleTtl());
    }

    private function getCompatibleTtl(): int
    {
        
Home | Imprint | This part of the site doesn't use cookies.