21 $this->
setSession( $id, [
'data' => $data ], $expiry, $user );
30 $this->
setSession( $id, [
'metadata' => $metadata ], $expiry );
44 $blob[
'metadata'] += [
45 'userId' => $user ? $user->getId() : 0,
46 'userName' => $user ? $user->getName() :
null,
47 'userToken' => $user ? $user->getToken(
true ) :
null,
48 'provider' =>
'DummySessionProvider',
61 $expiry = \RequestContext::getMain()->getConfig()->get(
'ObjectCacheSessionExpiry' );
64 $this->
set( $this->
makeKey(
'MWSession', $id ),
$blob, $expiry );
72 return $this->
get( $this->
makeKey(
'MWSession', $id ) );
80 return $this->backend->get( $this->
makeKey(
'MWSession', $id ) );
87 $this->
delete( $this->
makeKey(
'MWSession', $id ) );
Wrapper around a BagOStuff that caches data in memory.
makeKey()
Make a cache key, scoped to this instance's keyspace.
Simple store for keeping values in an associative array for the current process.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...