Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
edward1108 committed May 23, 2020
1 parent e11a730 commit ba67d55
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/vendor
/.idea
composer.phar
composer.lock
.DS_Store
Thumbs.db
/phpunit.xml
/.idea
/.vscode
.DS_Store
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# edward-redis
ThinkPHP框架Re的Redis扩展,支持多种Redis使用方法。支持ThinkPHP5.0和ThinkPHP5.1
ThinkPHP框架的Redis扩展,支持多种Redis使用方法。支持ThinkPHP5.0和ThinkPHP5.1

## 安装
> composer require edward1108/edward-redis
Expand Down Expand Up @@ -38,16 +38,16 @@ return [
## 例子
```
<?php
namespace app\index\controller;
use edward-redis\Redis;
namespace app\index\controller;
use edward-redis\Redis;
class index
{
public function test()
{
Redis::set('name','edward-redis');
$res = Redis::get('name');
var_dump($res); //输出edward-redis代表成功
}
class index
{
public function test()
{
Redis::set('name','edward-redis');
$res = Redis::get('name');
var_dump($res); //输出edward-redis代表成功
}
```
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edward1108/edward-redis",
"description": "ThinkPHP框架Re的Redis扩展,支持多种Redis使用方法。支持ThinkPHP5.0和ThinkPHP5.1",
"description": "ThinkPHP框架的Redis扩展,支持多种Redis使用方法。支持ThinkPHP5.0和ThinkPHP5.1",
"keywords": [
"Redis",
"ThinkPHP",
Expand Down

0 comments on commit ba67d55

Please sign in to comment.