Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @liaoliaots
* @nestjs-labs
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
architecture: x64
registry-url: 'https://registry.npmjs.org'
- run: pnpm install --frozen-lockfile
- run: pnpm -F "@liaoliaots/nestjs-redis" run lint
- run: pnpm -F "@liaoliaots/nestjs-redis" run build
- run: pnpm -F "@nestjs-labs/nestjs-redis" run lint
- run: pnpm -F "@nestjs-labs/nestjs-redis" run build
# - run: pnpm -r run publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
down-flags: '-v'
- run: docker compose exec cluster-m1 redis-cli -a mycluster --cluster create 127.0.0.1:7380 127.0.0.1:7381 127.0.0.1:7382 --cluster-yes
- run: pnpm install --frozen-lockfile
- run: pnpm -F "@liaoliaots/nestjs-redis" run lint
- run: pnpm -F "@liaoliaots/nestjs-redis" run test
- run: pnpm -F "@liaoliaots/nestjs-redis" run test:e2e
- run: pnpm -F "@nestjs-labs/nestjs-redis" run lint
- run: pnpm -F "@nestjs-labs/nestjs-redis" run test
- run: pnpm -F "@nestjs-labs/nestjs-redis" run test:e2e
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![NPM Version](https://img.shields.io/npm/v/%40liaoliaots%2Fnestjs-redis%2Falpha?style=for-the-badge)
![NPM Version](https://img.shields.io/npm/v/%40nestjs-redis%2Fnestjs-redis%2Falpha?style=for-the-badge)
[![Downloads][downloads-shield]][downloads-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
Expand All @@ -21,9 +21,9 @@
<br />
<a href="/sample">View Demos</a>
·
<a href="https://github.com/liaoliaots/nestjs-redis/issues/new/choose">Report Bug</a>
<a href="https://github.com/nestjs-labs/nestjs-redis/issues/new/choose">Report Bug</a>
·
<a href="https://github.com/liaoliaots/nestjs-redis/issues">Request Feature</a>
<a href="https://github.com/nestjs-labs/nestjs-redis/issues">Request Feature</a>
</p>
</div>

Expand Down Expand Up @@ -76,8 +76,8 @@ This lib requires **Node.js >=16.13.0**, **NestJS ^10.0.0**, **ioredis ^5.0.0**.

- If you depend on **ioredis 5** & **NestJS 10**, please use version **10** of the lib.
- If you depend on **ioredis 5** & **NestJS 9**, please use version **9** of the lib.
- If you depend on **ioredis 5**, **NestJS 7** or **8**, please use [version 8](https://github.com/liaoliaots/nestjs-redis/tree/v8.2.2) of the lib.
- If you depend on **ioredis 4**, please use [version 7](https://github.com/liaoliaots/nestjs-redis/tree/v7.0.0) of the lib.
- If you depend on **ioredis 5**, **NestJS 7** or **8**, please use [version 8](https://github.com/nestjs-labs/nestjs-redis/tree/v8.2.2) of the lib.
- If you depend on **ioredis 4**, please use [version 7](https://github.com/nestjs-labs/nestjs-redis/tree/v7.0.0) of the lib.

### Node-Redis

Expand All @@ -87,11 +87,11 @@ If you prefre [node-redis](https://github.com/redis/node-redis), check out [this

```sh
# with npm
npm install @liaoliaots/nestjs-redis ioredis
npm install @nestjs-labs/nestjs-redis ioredis
# with yarn
yarn add @liaoliaots/nestjs-redis ioredis
yarn add @nestjs-labs/nestjs-redis ioredis
# with pnpm
pnpm add @liaoliaots/nestjs-redis ioredis
pnpm add @nestjs-labs/nestjs-redis ioredis
```

## Usage
Expand Down Expand Up @@ -154,7 +154,7 @@ Examples of code:
```ts
// redis-config.service.ts
import { Injectable } from '@nestjs/common';
import { RedisModuleOptions, RedisOptionsFactory } from '@liaoliaots/nestjs-redis';
import { RedisModuleOptions, RedisOptionsFactory } from '@nestjs-labs/nestjs-redis';

@Injectable()
export class RedisConfigService implements RedisOptionsFactory {
Expand All @@ -176,7 +176,7 @@ export class RedisConfigService implements RedisOptionsFactory {
```ts
// app.module.ts
import { Module } from '@nestjs/common';
import { RedisModule } from '@liaoliaots/nestjs-redis';
import { RedisModule } from '@nestjs-labs/nestjs-redis';
import { RedisConfigService } from './redis-config.service';

@Module({
Expand All @@ -194,7 +194,7 @@ export class AppModule {}
```ts
// my-redis.module.ts
import { Module } from '@nestjs/common';
import { RedisModule } from '@liaoliaots/nestjs-redis';
import { RedisModule } from '@nestjs-labs/nestjs-redis';
import { RedisConfigService } from './redis-config.service';

@Module({
Expand Down Expand Up @@ -243,11 +243,11 @@ Distributed under the MIT License. See `LICENSE` for more information.
- [Official Redis Documentation](https://redis.io/)
- [Official Redis Docker Image](https://hub.docker.com/_/redis)

[downloads-shield]: https://img.shields.io/npm/dm/@liaoliaots/nestjs-redis?style=for-the-badge
[downloads-url]: https://www.npmjs.com/package/@liaoliaots/nestjs-redis
[stars-shield]: https://img.shields.io/github/stars/liaoliaots/nestjs-redis?style=for-the-badge
[stars-url]: https://github.com/liaoliaots/nestjs-redis/stargazers
[issues-shield]: https://img.shields.io/github/issues/liaoliaots/nestjs-redis?style=for-the-badge
[issues-url]: https://github.com/liaoliaots/nestjs-redis/issues
[license-shield]: https://img.shields.io/npm/l/@liaoliaots/nestjs-redis?style=for-the-badge
[license-url]: https://github.com/liaoliaots/nestjs-redis/blob/main/LICENSE
[downloads-shield]: https://img.shields.io/npm/dm/@nestjs-labs/nestjs-redis?style=for-the-badge
[downloads-url]: https://www.npmjs.com/package/@nestjs-labs/nestjs-redis
[stars-shield]: https://img.shields.io/github/stars/nestjs-labs/nestjs-redis?style=for-the-badge
[stars-url]: https://github.com/nestjs-labs/nestjs-redis/stargazers
[issues-shield]: https://img.shields.io/github/issues/nestjs-labs/nestjs-redis?style=for-the-badge
[issues-url]: https://github.com/nestjs-labs/nestjs-redis/issues
[license-shield]: https://img.shields.io/npm/l/@nestjs-labs/nestjs-redis?style=for-the-badge
[license-url]: https://github.com/nestjs-labs/nestjs-redis/blob/main/LICENSE
Loading