Rename Psr16StoreSession to Psr16SessionStore for consistency (#236)

This commit is contained in:
Christopher Hertel 2026-02-08 15:31:19 +01:00 • committed by GitHub
commit 9621039e54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,7 +192,7 @@ By default, the SDK uses in-memory sessions. You can configure different session
```php
use Mcp\Server\Session\FileSessionStore;
use Mcp\Server\Session\InMemorySessionStore;
use Mcp\Server\Session\Psr16StoreSession;
use Mcp\Server\Session\Psr16SessionStore;
use Symfony\Component\Cache\Psr16Cache;
use Symfony\Component\Cache\Adapter\RedisAdapter;
@ -220,7 +220,7 @@ $redisAdapter = new RedisAdapter(
);
$server = Server::builder()
->setSession(new Psr16StoreSession(
->setSession(new Psr16SessionStore(
cache: new Psr16Cache($redisAdapter),
prefix: 'mcp-',
ttl: 3600