From eb11f8386ad36503d165c23927876f9226cbd115 Mon Sep 17 00:00:00 2001 From: leibale Date: Tue, 12 Oct 2021 11:43:53 -0400 Subject: [PATCH] fix README --- README.md | 5 ++--- index.ts | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c768b691d7..073776535e 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ You can override the default options by providing a configuration object: client.scanIterator({ TYPE: 'string', // `SCAN` only MATCH: 'patter*', - COUNT: 100, + COUNT: 100 }); ``` @@ -201,8 +201,7 @@ client.scanIterator({ Define new functions using [Lua scripts](https://redis.io/commands/eval) which execute on the Redis server: ```typescript -import { createClient } from 'redis'; -import { defineScript } from 'redis/lua-script'; +import { createClient, defineScript } from 'redis'; (async () => { const client = createClient({ diff --git a/index.ts b/index.ts index fb448f989c..408cbe3b99 100644 --- a/index.ts +++ b/index.ts @@ -6,3 +6,5 @@ export const createClient = RedisClient.create; export const commandOptions = RedisClient.commandOptions; export const createCluster = RedisCluster.create; + +export { defineScript } from './lib/lua-script';