Skip to content

Commit

Permalink
更新连接上下文文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jan 17, 2020
1 parent 10275a6 commit fe4823c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/components/websocketServer/session.md
Expand Up @@ -65,3 +65,20 @@ Redis:
],
],
```

Local:

本地变量存储,性能最高

> 只建议在 `SWOOLE_BASE` 模式下使用
```php
'beans' => [
'ConnectContextStore' => [
'handlerClass' => \Imi\Server\ConnectContext\StoreHandler\Local::class,
],
'ConnectContextLocal' => [
'lockId' => null, // 必设,需要用锁来防止数据错乱问题
],
],
```

0 comments on commit fe4823c

Please sign in to comment.