aerospike/store 问题修复 & 功能扩展

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

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

aerospike/store

最新稳定版本:v0.1.0

Composer 安装命令:

composer require aerospike/store

包简介

A custom session handler backed by Aerospike for PHP 5.4

README 文档

README

Use Aerospike as session store for PHP. Aerospike easily scales up, and besides RAM it also supports SSD for persistency in a highly optimized architecture. This session handler supports auto expiration of sessions at database level. Find out more about Aerospike.

Dependencies

Installation

Using Composer

$ composer require aerospike/store "*"

Manually

Download and use AerospikeSessionHandler.php.

Usage

Auto-load or:

require 'AerospikeSessionHandler.php';

Create an instance of AerospikeSessionHandler and set it as session handler:

$Handler = new AerospikeSessionHandler();
session_set_save_handler($Handler);
session_start();

It is possible to pass a custom client instance:

$db = new Aerospike(["hosts" => [["addr" => "127.0.0.1", "port" => 3000]]]);
$Handler = new AerospikeSessionHandler($db);

And also a custom set of options:

$Handler = new AerospikeSessionHandler(NULL, array(
	'addr' => '127.0.0.1',
	'port' => 3000,
	'ns' => 'test',
	'set' => 'session',
	'bin' => 'data',
	'ttl' => 3600 // defualt = session.gc_maxlifetime
));

Single-Bin

By default an Aerospike namespace supports multiple bins per key. As the session store only use a single bin for stroing data, it is recommended to to enable single-bin option in namespace configuration for higher performance.

Contributing

  1. Fork it ( https://github.com/amirrf/aerospike-store-php/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

The Aerospike-Store-PHP is made available under the terms of the Apache License, Version 2, as stated in the file LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2014-11-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固