method
RedisClient.function
@param args
Subcommand and its arguments (LOAD, DELETE, LIST, DUMP, FLUSH, etc.)
@returns
Promise that resolves with the subcommand's result
await redis.function("LOAD", "#!lua name=mylib\nredis.register_function('myfunc', function() return 1 end)");
await redis.fcall("myfunc", 0); // 1
await redis.function("DELETE", "mylib");Referenced types
type KeyLike = string | ArrayBufferView | Blob