class ClientStorage implements ClientStorageInterface

Class ClientStorage

Properties

protected DriverInterface $driver
protected LoggerInterface $logger
protected int $ttl

Methods

__construct(int $ttl, LoggerInterface $logger = null)

No description

setStorageDriver(DriverInterface $driver)

No description

string|UserInterface|false
getClient(string $identifier)

No description

static string
getStorageId(ConnectionInterface $conn)

No description

addClient(string $identifier, string|UserInterface $user)

No description

bool
hasClient(string $identifier)

No description

bool
removeClient(string $identifier)

No description

Details

at line 39
__construct(int $ttl, LoggerInterface $logger = null)

Parameters

int $ttl
LoggerInterface $logger

at line 48
setStorageDriver(DriverInterface $driver)

Parameters

DriverInterface $driver

at line 56
string|UserInterface|false getClient(string $identifier)

Parameters

string $identifier

Return Value

string|UserInterface|false

Exceptions

StorageException

at line 74
static string getStorageId(ConnectionInterface $conn)

Parameters

ConnectionInterface $conn

Return Value

string

at line 82
addClient(string $identifier, string|UserInterface $user)

Parameters

string $identifier
string|UserInterface $user

Exceptions

StorageException

at line 106
bool hasClient(string $identifier)

Parameters

string $identifier

Return Value

bool

at line 120
bool removeClient(string $identifier)

Parameters

string $identifier

Return Value

bool