src/A1comms/GaeSupportLaravel/Session/DatastoreSessionHandler.php
/**
     * write - Writes the session data to the storage
     *
     * @param string $id   Session ID
     * @param string $data Serialized session data to save
     *
     * @access public
     *
     * @return string
     */
Writes the session data to the storage
@param string $id   Session ID
@param string $data Serialized session data to save

@access public

@return string
Writes the session data to the storage @param string $id Session ID @param string $data Serialized session data to save @access public @return string
public function write($id, $data)
    {
        $obj_sess = $this->obj_store->createEntity([
            'data'          => $data,
            'lastaccess'    => $this->lastaccess
        ])->setKeyName($id);
        if (($this->orig_id != $id) || ($this->orig_data != $data)) {
            $result = (new ExponentialBackoff(6, [DatastoreFactory::class, 'shouldRetry']))->execute([$this->obj_store, 'upsert'], [$obj_sess]);
        }
        return true;
    }
public function write ( $ id , $ data ) { $ obj_sess = $ this -> obj_store -> createEntity ( [ 'data' => $ data , 'lastaccess' => $ this -> lastaccess ] ) -> setKeyName ( $ id ) ; if ( ( $ this -> orig_id != $ id ) || ( $ this -> orig_data != $ data ) ) { $ result = ( new ExponentialBackoff ( 6 , [ DatastoreFactory :: class , 'shouldRetry' ] ) ) -> execute ( [ $ this -> obj_store , 'upsert' ] , [ $ obj_sess ] ) ; } return true ; }
write - Writes the session data to the storage
 @param string $id   Session ID
 @param string $data Serialized session data to save
write - Writes the session data to the storage @param string $id Session ID @param string $data Serialized session data to save
/**
             * If Datastore returns too much contention on write,
             * keep retrying with exponential backoff, 6 times until we fail.
             */