yiisoft / Yii2 Redis
Licence: bsd-3-clause
Yii 2 Redis extension.
Stars: ✭ 416
Projects that are alternatives of or similar to Yii2 Redis
Yii2 Docker
Official Docker images suitable for Yii 2.0
Stars: ✭ 286 (-31.25%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Bootstrap
Yii 2 Bootstrap 3 Extension
Stars: ✭ 177 (-57.45%)
Mutual labels: hacktoberfest, yii2, yii
Yii2
Yii 2: The Fast, Secure and Professional PHP Framework
Stars: ✭ 13,852 (+3229.81%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Bootstrap4
Yii 2 Bootstrap 4 Extension
Stars: ✭ 204 (-50.96%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 App Advanced
Yii 2.0 Advanced Application Template
Stars: ✭ 1,569 (+277.16%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Elasticsearch
Yii 2 Elasticsearch extension
Stars: ✭ 401 (-3.61%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Swiftmailer
Yii 2 swiftmailer extension.
Stars: ✭ 109 (-73.8%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Openapi
REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
Stars: ✭ 99 (-76.2%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 App Basic
Yii 2.0 Basic Application Template
Stars: ✭ 548 (+31.73%)
Mutual labels: hacktoberfest, yii2, yii
Yii2 Queue
Yii2 Queue Extension. Supports DB, Redis, RabbitMQ, Beanstalk and Gearman
Stars: ✭ 977 (+134.86%)
Mutual labels: hacktoberfest, redis, yii2
Redis Cache, Session and ActiveRecord for Yii 2
This extension provides the redis key-value store support for the Yii framework 2.0.
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-file.
Documentation is at docs/guide/README.md.
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.
Either run
php composer.phar require --prefer-dist yiisoft/yii2-redis:"~2.0.0"
or add
"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:
return [
//....
'components' => [
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'database' => 0,
],
]
];
SSL configuration example:
return [
//....
'components' => [
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6380,
'database' => 0,
'useSSL' => true,
// Use contextOptions for more control over the connection (https://www.php.net/manual/en/context.php), not usually needed
'contextOptions' => [
'ssl' => [
'local_cert' => '/path/to/local/certificate',
'local_pk' => '/path/to/local/private_key',
],
],
],
],
];
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].