Skip to content

SimpleCacheStorage

Properties

cache

protected \Psr\SimpleCache\CacheInterface $cache

Methods

__construct

public __construct(\Psr\SimpleCache\CacheInterface $cache): mixed

Parameters:

Parameter Type Description
$cache \Psr\SimpleCache\CacheInterface

read

Read raw Session Data from underlying storage.

public read(string $sessionId): array|null

Parameters:

Parameter Type Description
$sessionId string

Throws:


write

Write raw Session Data to underlying storage.

public write(string $sessionId, array $data, int $ttl): void

Parameters:

Parameter Type Description
$sessionId string
$data array
$ttl int time to live (in seconds)

Throws:


destroy

Destroy the entire session by forcibly removing raw Session Data from underlying storage.

public destroy(string $sessionId): void

Parameters:

Parameter Type Description
$sessionId string

Throws:



Automatically generated on 2025-10-13