1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

move "all-in-one" to root folder

This commit is contained in:
leibale
2021-11-09 19:55:16 -05:00
parent 57539e7c3f
commit 38426fe2a4
17 changed files with 408 additions and 408 deletions

22
index.ts Normal file
View File

@@ -0,0 +1,22 @@
import { createClient as _createClient } from '@redis/client';
import { RedisScripts } from '@redis/client/dist/lib/commands';
import { RedisClientOptions, RedisClientType } from '@redis/client/dist/lib/client';
import RedisJSON from '@redis/json';
import RediSearch from '@redis/search';
export * from '@redis/search';
const modules = {
json: RedisJSON,
ft: RediSearch
};
export function createClient<S extends RedisScripts = Record<string, never>>(
options?: Omit<RedisClientOptions<never, S>, 'modules'>
): RedisClientType<typeof modules, S> {
return _createClient({
...options,
modules
});
}