dsc56927 2013-07-18 19:08
浏览 52

在Redis中实现会话处理程序

Hello I need shared SESSION PHP with NODE. So I decided use REDIS, I don't know it earlier. For client I choose Predis.

And now I have some issue, when we look into session handler source we can see that variable is store as string, why that ?

https://github.com/nrk/predis/blob/v0.8/lib/Predis/Session/SessionHandler.php

The first thing in my head was HASH, it seems obvious for me. There is any contraindications for that ?

  • 写回答

1条回答 默认 最新

  • duanbarong4321 2014-06-09 04:26
    关注

    In redis everything is stored as key value pair whose basic type is string itself . You can always store your hash in form of json encoded string or as Sets in Redis.

    评论

报告相同问题?

悬赏问题

  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试