Memory¶
-
class
OC\Session\
Memory
¶ - Class Internalstore session data in an in-memory array, not persistent
Source: lib/private/Session/Memory.php#44 Parent: OC\Session\Session
Properties¶
-
protected static property
OC\Session\Memory::$
data
¶ Source: lib/private/Session/Memory.php#45
Methods¶
-
public
OC\Session\Memory::
__construct
($name)¶ Source: lib/private/Session/Memory.php#47
-
public
OC\Session\Memory::
set
($key, $value)¶ Source: Parameters: - $key (string)
- $value (int)
-
public
OC\Session\Memory::
get
($key)¶ Source: Parameters: - $key (string)
Returns: mixed
-
public
OC\Session\Memory::
exists
($key)¶ Source: Parameters: - $key (string)
Returns: bool
-
public
OC\Session\Memory::
remove
($key)¶ Source: Parameters: - $key (string)
-
public
OC\Session\Memory::
clear
()¶ Source: lib/private/Session/Memory.php#88
-
public
OC\Session\Memory::
regenerateId
($deleteOldSession=true, $updateToken=false)¶ - Stub since the session ID does not need to get regenerated for the cache
Source: Parameters: - $deleteOldSession (bool)
-
public
OC\Session\Memory::
getId
()¶ - Wrapper around session_id
Source: lib/private/Session/Memory.php#107 Returns: string Throws: \OCP\Session\Exceptions\SessionNotAvailableException
Since: 9.1.0
-
public
OC\Session\Memory::
reopen
()¶ - Helper function for PHPUnit execution - don’t use in non-test code
Source: lib/private/Session/Memory.php#114