https://github.com/photon/session-memcached
Memcached backend for session storage
https://github.com/photon/session-memcached
Last synced: about 1 year ago
JSON representation
Memcached backend for session storage
- Host: GitHub
- URL: https://github.com/photon/session-memcached
- Owner: photon
- License: lgpl-2.1
- Created: 2014-11-21T12:44:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T12:21:08.000Z (about 10 years ago)
- Last Synced: 2025-02-15T20:49:35.110Z (over 1 year ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
session-memcached
=================
[](https://travis-ci.org/photon/session-memcached)
Memcached backend for session storage
Quick start
-----------
1) Add the module in your project
composer require "photon/session-memcached:dev-master"
or for a specific version
composer require "photon/session-memcached:1.0.0"
2) Define a MongoDB connection in your project configuration
'databases' => array(
'session-db' => array(
'engine' => '\photon\db\Memcached',
'host' => array('localhost:11211'),
'id' => 'myapp',
),
),
3) Define the session storage backend in your project configuration, and some others session parameters
'session_storage' => '\photon\session\storage\Memcached',
'session_cookie_domain' => 'www.example.com',
'session_cookie_path' => '/',
'session_timeout' => 4 * 3600,
4) Define the configuration of the MongoDB Session module in your project configuration
'session_memcached' => array(
'database' => 'session-db',
),
5) Enjoy !