@javien/mikro-orm-redis-cache-adapter
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -29,3 +29,4 @@ import type Redis from 'ioredis'; | ||
readonly gracefulShutdown = true; | ||
constructor(options: SetRequired<Partial<Options>, 'client'>); | ||
constructor(options: RedisCacheAdapterOptions); | ||
} | ||
export type RedisCacheAdapterOptions = SetRequired<Partial<Options>, 'client'>; |
@@ -1,3 +0,3 @@ | ||
import { Options } from './options'; | ||
import type { CacheAdapter } from '@mikro-orm/core'; | ||
import type { RedisCacheAdapterOptions } from './options'; | ||
export declare class RedisCacheAdapter implements CacheAdapter { | ||
@@ -7,3 +7,3 @@ private readonly options; | ||
private readonly deserializer; | ||
constructor(options: Options); | ||
constructor(options: RedisCacheAdapterOptions); | ||
get<T = unknown>(name: string): Promise<T | undefined>; | ||
@@ -10,0 +10,0 @@ set(name: string, data: unknown, _origin: string, expiration?: number | undefined): Promise<void>; |
@@ -5,3 +5,3 @@ { | ||
"description": "", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"author": "Javien Lee <kraccoon@dimipay.io> (https://github.com/SnowMarble/)", | ||
@@ -8,0 +8,0 @@ "keywords": ["mikro-orm", "redis", "cache", "adapter"], |
8014
198