PHPackages                             uniondrug/redis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. uniondrug/redis

ActiveLibrary[Caching](/categories/caching)

uniondrug/redis
===============

Uniondrug Redis Component for uniondrug/framework

2.0.3(7y ago)03.8k2proprietaryPHP

Since Apr 23Pushed 7y ago3 watchersCompare

[ Source](https://github.com/uniondrug/redis)[ Packagist](https://packagist.org/packages/uniondrug/redis)[ RSS](/packages/uniondrug-redis/feed)WikiDiscussions 2.x Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (2)

Redis component for uniondrug/framework
=======================================

[](#redis-component-for-uniondrugframework)

安装
--

[](#安装)

```
$ cd project-home
$ composer require uniondrug/redis
$ cp vendor/uniondrug/redis/redis.php config/
```

修改 `app.php` 配置文件，加上Redis服务，服务名称`redis`

Update：2018-05-16： 增加锁功能，服务名称 `redisLock`

```
return [
    'default' => [
        ......
        'providers'           => [
            ......
            \Uniondrug\Redis\RedisServiceProvider::class,
        ],
    ],
];
```

配置
--

[](#配置)

配置文件在 `redis.php` 中，配置相关参数

```
