Rename Psr16StoreSession to Psr16SessionStore for consistency (#236)
This commit is contained in:
parent
77d6433e4b
commit
9621039e54
1 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue