Skip to content

Commit ff08880

Browse files
lvan100lianghuan
authored andcommitted
docs(readme): update readme
1 parent e28fa5f commit ff08880

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ str, err := s.Redis.Set(r.Context(), "key", "value", 0).Result()
5656

5757
* **Supports multiple Redis instances**: You can define multiple Redis instances in the configuration file and reference
5858
them by name in your project.
59+
* **Support Redis extensions**: You can extend Redis functionality by implementing the `Driver` interface — see the
60+
example implementation `AnotherRedisDriver`.

README_CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spring.go-redis.main.addr=127.0.0.1:6379
3939
import "github.com/redis/go-redis/v9"
4040

4141
type Service struct {
42-
Redis *redis.Client `autowire:""`
42+
Redis *redis.Client `autowire:""`
4343
}
4444
```
4545

@@ -55,3 +55,4 @@ str, err := s.Redis.Set(r.Context(), "key", "value", 0).Result()
5555
## 高级功能
5656

5757
* **支持多 Redis 实例**:可以在配置文件中定义多个 Redis 实例,并在项目中使用 name 进行引用。
58+
* **支持 Redis 扩展**:可以通过实现 `Driver` 接口来扩展 Redis 功能,参见示例中的 `AnotherRedisDriver` 实现。

0 commit comments

Comments
 (0)