https://github.com/cebe/jenkins-test
test repo for building with jenkins
https://github.com/cebe/jenkins-test
Last synced: 8 months ago
JSON representation
test repo for building with jenkins
- Host: GitHub
- URL: https://github.com/cebe/jenkins-test
- Owner: cebe
- License: other
- Created: 2015-04-21T17:53:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-23T12:49:58.000Z (about 11 years ago)
- Last Synced: 2024-12-25T07:22:43.209Z (over 1 year ago)
- Language: PHP
- Size: 11 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
Redis Cache, Session and ActiveRecord for Yii 2
===============================================
This extension provides the [redis](http://redis.io/) key-value store support for the [Yii framework 2.0](http://www.yiiframework.com).
It includes a `Cache` and `Session` storage handler and implements the `ActiveRecord` pattern that allows
you to store active records in redis.
For license information check the [LICENSE](LICENSE.md)-file.
[](https://packagist.org/packages/yiisoft/yii2-redis)
[](https://packagist.org/packages/yiisoft/yii2-redis)
[](https://travis-ci.org/yiisoft/yii2-redis)
Requirements
------------
At least redis version 2.6.12 is required for all components to work properly.
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist yiisoft/yii2-redis
```
or add
```json
"yiisoft/yii2-redis": "~2.0.0"
```
to the require section of your composer.json.
Configuration
-------------
To use this extension, you have to configure the Connection class in your application configuration:
```php
return [
//....
'components' => [
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'database' => 0,
],
]
];
```