Spanner/src/Session/CacheSessionPool.php
public function keepAlive(Session $session)
    {
        $this->config['lock']->synchronize(function () use ($session) {
            $item = $this->cacheItemPool->getItem($this->cacheKey);
            $data = $item->get();
            $data['inUse'][$session->name()]['lastActive'] = $this->time();

            $this->cacheItemPool->save($item->set($data));
        });
    }
public function keepAlive(Session $session)
    {
        $this->config['lock']->synchronize(function () use ($session) {
            $item = $this->cacheItemPool->getItem($this->cacheKey);
            $data = $item->get();
            $data['inUse'][$session->name()]['lastActive'] = $this->time();

            $this->cacheItemPool->save($item->set($data));
        });
    }
public function keepAlive ( Session $ session ) { $ this -> config [ 'lock' ] -> synchronize ( function ( ) use ( $ session ) { $ item = $ this -> cacheItemPool -> getItem ( $ this -> cacheKey ) ; $ data = $ item -> get ( ) ; $ data [ 'inUse' ] [ $ session -> name ( ) ] [ 'lastActive' ] = $ this -> time ( ) ; $ this -> cacheItemPool -> save ( $ item -> set ( $ data ) ) ; } ) ; }
Keeps a checked out session alive.

In use sessions that have not had their `lastActive` time updated
in the last 20 minutes will be considered eligible to be moved back into
the queue if the max sessions value has been met. In order to work around
this when performing a large streaming execute or read call please make
sure to call this method roughly every 15 minutes between reading rows
to keep your session active.

@param Session $session The session to keep alive.
Keeps a checked out session alive .