0

我想将 Memaced 与本机 PHP 会话一起使用。但是,如果有一个简单的解决方案让 Memcached 守护程序以固定的时间间隔将保存在内存中的数据写入磁盘数据库作为后备,那就太好了。有什么解决方案吗?我不想重新发明轮子..

4

1 回答 1

0

What you will need to do is write a custom session handler that uses memcached but also writes to your database. You can use session_set_save_handler to do this.

于 2013-11-02T19:01:20.843 回答