netom/php-riak-session 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netom/php-riak-session

Composer 安装命令:

composer require netom/php-riak-session

包简介

PHP session handler with Riak backend

README 文档

README

Riak-session is a very simple session handler plugin for PHP.

It uses the HTTP interface and the CURL extension to communicate with a Riak cluster.

The session handler only works with one node, no failover capability is provided here. Use HaProxy or an application-local Riak node to increase availability.

If you'd like to make use of the gc() method of the save handler, you have to configure Riak with a backend that supports secondary indexes. Alternatively, you can setup BitCask (for example) with expiry to automatically retire old sessions.

Usage

Use composer to include 'netom/php-riak-session'.

Use the code below to register a riak session handler instance, and get the actual handler instance in a signle line:

    $h = \Netom\Session\Riak::register();

See the code for parameters.

The default is to connect to the localhost, and to the 'default' bucket type, and 'session' bucket.

The time() is stored to a t_int indexed field for every session.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固