doSet example

'collection' => $this->collection,
      ])
      ->fields(['value' => $this->serializer->encode($value)])
      ->execute();
  }

  /** * {@inheritdoc} */
  public function set($key$value) {
    try {
      $this->doSet($key$value);
    }
    catch (\Exception $e) {
      // If there was an exception, try to create the table.       if ($this->ensureTableExists()) {
        $this->doSet($key$value);
      }
      else {
        throw $e;
      }
    }
  }

  
Home | Imprint | This part of the site doesn't use cookies.