Class StandardSessionConnection
- Aws\DynamoDb\StandardSessionConnection implements Aws\DynamoDb\SessionConnectionInterface uses Aws\DynamoDb\SessionConnectionConfigTrait
- Namespace: Aws\DynamoDb
- Located at DynamoDb/StandardSessionConnection.php
The standard connection performs the read and write operations to DynamoDB.
Direct known subclasses
Methods Summary
- __construct ( Aws\DynamoDb\DynamoDbClient $client, array $config = [] )
-
read ( string $id )
Reads session data from DynamoDB
-
write ( string $id, string $data, bool $isChanged )
Writes session data to DynamoDB
-
delete ( string $id )
Deletes session record from DynamoDB
-
deleteExpired ( )
Performs garbage collection on the sessions stored in the DynamoDB
Methods used from Aws\DynamoDb\SessionConnectionConfigTrait
getBatchConfig()
,
getDataAttribute()
,
getDataAttributeType()
,
getHashKey()
,
getMaxLockRetryMicrotime()
,
getMaxLockWaitTime()
,
getMinLockRetryMicrotime()
,
getSessionLifetime()
,
getSessionLifetimeAttribute()
,
getTableName()
,
initConfig()
,
isConsistentRead()
,
isLocking()
,
setBatchConfig()
,
setConsistentRead()
,
setDataAttribute()
,
setDataAttributeType()
,
setHashKey()
,
setLocking()
,
setMaxLockRetryMicrotime()
,
setMaxLockWaitTime()
,
setMinLockRetryMicrotime()
,
setSessionLifetime()
,
setSessionLifetimeAttribute()
,
setTableName()
Methods Details
__construct (
Aws\DynamoDb\DynamoDbClient
$client,
array
$config = []
)
Parameters
Aws\DynamoDb\DynamoDbClient |
$client | DynamoDB client |
array | $config = [] | Session handler config |
array read ( string $id )
Reads session data from DynamoDB
Parameters
string | $id | Session ID |
Returns
array |
Implementation of
boolean write ( string $id, string $data, boolean $isChanged )
Writes session data to DynamoDB
Parameters
string | $id | Session ID |
string | $data | Serialized session data |
boolean | $isChanged | Whether or not the data has changed |
Returns
boolean |
Implementation of
boolean delete ( string $id )
Deletes session record from DynamoDB
Parameters
string | $id | Session ID |
Returns
boolean |
Implementation of
boolean deleteExpired ( )
Performs garbage collection on the sessions stored in the DynamoDB
Returns
boolean |