27 $this->
setSession( $id, [
'metadata' => $metadata ] );
39 $blob[
'metadata'] += [
43 'provider' =>
'DummySessionProvider',
54 $expiry = \RequestContext::getMain()->getConfig()->get(
'ObjectCacheSessionExpiry' );
55 $this->
set( $this->
makeKey(
'MWSession', $id ),
$blob, $expiry );
63 return $this->
get( $this->
makeKey(
'MWSession', $id ) );
71 return $this->backend->get( $this->
makeKey(
'MWSession', $id ) );
78 $this->
delete( $this->
makeKey(
'MWSession', $id ) );
Wrapper around a BagOStuff that caches data in memory.
makeKey( $class, $component=null)
Make a cache key, scoped to this instance's keyspace.
Simple store for keeping values in an associative array for the current process.