detain/session-samurai

🥷 PHP 通用高速异步(非阻塞)SessionHandlerInterface 实现,支持信号量、Mysqli、Redis、SQLite3、Symfony/Cache、WinCache、PhpFastCache、PHP-Cache、PDO、Memcached、FlySystem Filesystem、Illuminate、APCu、APC、OpCache、InfluxDB、WinCache、MongoDb 和本地文件存储。

v0.0.2 2023-02-21 18:19 UTC

This package is auto-updated.

Last update: 2024-09-03 10:20:43 UTC


README

check

PHP 通用高速异步(非阻塞)SessionHandlerInterface 实现,支持信号量、Mysqli、Redis、SQLite3、Symfony/Cache、WinCache、PhpFastCache、PHP-Cache、PDO、Memcached、FlySystem Filesystem、Illuminate、APCu、APC、OpCache、InfluxDB、WinCache、MongoDb 和本地文件存储。

"会话处理就像一场剑术对决
在移动之前,你必须先思考
当它被正确使用时,几乎是无敌的"

项目状态

Session Samurai 🥷 刚刚起步,还在探索它的生活目标。不久的将来,它将成长为一个超级热门的项目,做同样的事情,但做得更好。

安装

使用 composer 将保存处理程序包含到您的应用程序中。

composer requre detain/session-samurai

用法

require 'vendor/autoload.php';  // set up autoloading using composer

$memcached = new \Memcached();  // create connection to memcached
$memcached->addServer('localhost', 11211);
$handler = new \Detain\SessionSamurai\MemcachedSessionHandler($memcached);
session_set_save_handler($handler, true);

开发笔记

可能有良好参考材料的相关网站