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';