Skip to content

Commit

Permalink
dev: change dependency cache-redis to cache-redis-node
Browse files Browse the repository at this point in the history
  • Loading branch information
haristhohir committed Mar 25, 2024
1 parent db5ea28 commit 9223d6e
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 28 deletions.
2 changes: 1 addition & 1 deletion libs/cache/src/cache.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DynamicModule, Module } from '@nestjs/common';
import { CacheService } from './cache.service';
import { REDIS_OPTIONS } from './cache.constant';
import { RedisClientOptions } from 'cache-redis';
import { RedisClientOptions } from 'cache-redis-node';

@Module({})
export class CacheModule {
Expand Down
3 changes: 1 addition & 2 deletions libs/cache/src/cache.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { CacheService } from './cache.service';
import { REDIS_OPTIONS } from './cache.constant';
import { RedisClientOptions } from 'redis';
import { CacheKeys } from 'cache-redis';
import { CacheKeys, RedisClientOptions } from 'cache-redis-node';

describe('CacheService', () => {
let service: CacheService;
Expand Down
2 changes: 1 addition & 1 deletion libs/cache/src/cache.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Inject, Injectable } from '@nestjs/common';
import { Cache, CacheKeys, RedisClientOptions } from 'cache-redis';
import { Cache, CacheKeys, RedisClientOptions } from 'cache-redis-node';
import { REDIS_OPTIONS } from './cache.constant';

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion libs/cache/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './cache.module';
export * from './cache.service';
export { CacheKeys, RedisClientOptions } from 'cache-redis';
export { CacheKeys, RedisClientOptions } from 'cache-redis-node';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cache-redis-nest",
"version": "0.1.1",
"version": "0.1.2",
"description": "NestJs cache library using redis",
"author": "[email protected]",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/cache/cache.module.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DynamicModule } from '@nestjs/common';
import { RedisClientOptions } from 'cache-redis';
import { RedisClientOptions } from 'cache-redis-node';
export declare class CacheModule {
static register(options: RedisClientOptions): DynamicModule;
}
2 changes: 1 addition & 1 deletion packages/cache/cache.service.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CacheKeys, RedisClientOptions } from 'cache-redis';
import { CacheKeys, RedisClientOptions } from 'cache-redis-node';
export declare class CacheService {
private cache;
constructor(redisOptions: RedisClientOptions);
Expand Down
4 changes: 2 additions & 2 deletions packages/cache/cache.service.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cache/cache.service.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cache/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './cache.module';
export * from './cache.service';
export { CacheKeys, RedisClientOptions } from 'cache-redis';
export { CacheKeys, RedisClientOptions } from 'cache-redis-node';
4 changes: 2 additions & 2 deletions packages/cache/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cache/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cache/tsconfig.lib.tsbuildinfo

Large diffs are not rendered by default.

22 changes: 10 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9223d6e

Please sign in to comment.