Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
}