Exception
11 months ago
BinaryValue.php
11 months ago
DynamoDbClient.php
11 months ago
LockingSessionConnection.php
11 months ago
Marshaler.php
11 months ago
NumberValue.php
11 months ago
SessionConnectionConfigTrait.php
11 months ago
SessionConnectionInterface.php
11 months ago
SessionHandler.php
11 months ago
SetValue.php
11 months ago
StandardSessionConnection.php
11 months ago
WriteRequestBatch.php
11 months ago
SessionConnectionInterface.php
46 lines
| 1 | <?php |
| 2 | namespace Aws\DynamoDb; |
| 3 | |
| 4 | /** |
| 5 | * The session connection provides the underlying logic for interacting with |
| 6 | * Amazon DynamoDB and performs all of the reading and writing operations. |
| 7 | */ |
| 8 | interface SessionConnectionInterface |
| 9 | { |
| 10 | /** |
| 11 | * Reads session data from DynamoDB |
| 12 | * |
| 13 | * @param string $id Session ID |
| 14 | * |
| 15 | * @return array |
| 16 | */ |
| 17 | public function read($id); |
| 18 | |
| 19 | /** |
| 20 | * Writes session data to DynamoDB |
| 21 | * |
| 22 | * @param string $id Session ID |
| 23 | * @param string $data Serialized session data |
| 24 | * @param bool $isChanged Whether or not the data has changed |
| 25 | * |
| 26 | * @return bool |
| 27 | */ |
| 28 | public function write($id, $data, $isChanged); |
| 29 | |
| 30 | /** |
| 31 | * Deletes session record from DynamoDB |
| 32 | * |
| 33 | * @param string $id Session ID |
| 34 | * |
| 35 | * @return bool |
| 36 | */ |
| 37 | public function delete($id); |
| 38 | |
| 39 | /** |
| 40 | * Performs garbage collection on the sessions stored in the DynamoDB |
| 41 | * |
| 42 | * @return bool |
| 43 | */ |
| 44 | public function deleteExpired(); |
| 45 | } |
| 46 |