Skip to content

Commit 887106e

Browse files
committed
feat(utils): export type RedisStore
1 parent 645d6bf commit 887106e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/utils/src/store/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export type { Store, StoreConfig, Stores } from 'cache-manager'
22
export { redisStore } from './redis'
3+
export type { RedisStore, RedisClusterConfig } from './redis'
34
export * from './manager'
45
export { memoryStore } from './memory'
56
export type { MemoryStore, MemoryCache, MemoryConfig } from './memory'

packages/utils/src/store/redis.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { RedisOptions } from 'ioredis'
22
import { Redis } from 'ioredis'
33
import type { Config } from 'cache-manager'
4+
import type { RedisStore } from 'cache-manager-ioredis-yet'
45
import { RedisClusterConfig, redisInsStore } from 'cache-manager-ioredis-yet'
56

67
export function redisStore(
@@ -22,3 +23,7 @@ export {
2223
RedisClusterConfig,
2324
redisInsStore,
2425
}
26+
27+
export type {
28+
RedisStore,
29+
}

packages/utils/src/store/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
import type { Keyv } from 'keyv'
2-
3-
export type Store = Keyv

0 commit comments

Comments
 (0)