set() abstract public method

Save a value to the data store.
abstract public set ( string $type, string $key, mixed $value, integer | null $expire = null )
$type string The data type.
$key string The key.
$value mixed The value.
$expire integer | null The expiration time (unix timestamp), or null if it never expires.
 /**
  * Save a session to the data store.
  *
  * @param SimpleSAML_Session $session The session object we should save.
  */
 public function saveSession(SimpleSAML_Session $session)
 {
     $sessionId = $session->getSessionId();
     $config = SimpleSAML_Configuration::getInstance();
     $sessionDuration = $config->getInteger('session.duration', 8 * 60 * 60);
     $expire = time() + $sessionDuration;
     $this->store->set('session', $sessionId, $session, $expire);
 }