Download the PHP package aerospike/store without Composer
On this page you can find all versions of the php package aerospike/store. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aerospike/store
More information about aerospike/store
Files in aerospike/store
Package store
Short Description A custom session handler backed by Aerospike for PHP 5.4
License Apache-2.0
Homepage https://github.com/amirrf/aerospike-store-php
Informations about the package store
Aerospike::Store for PHP
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
- It is written for PHP 5.4 and above.
- Aerospike PHP Client: Using Composer the dependency will be installed automatically.
Installation
Using Composer
$ composer require aerospike/store "*"
Manually
Download and use AerospikeSessionHandler.php
.
Usage
Auto-load or:
Create an instance of AerospikeSessionHandler
and set it as session handler:
It is possible to pass a custom client instance:
And also a custom set of options:
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
- Fork it ( https://github.com/amirrf/aerospike-store-php/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - 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
.