method
RedisClient.object
@param subcommand
The subcommand (ENCODING, FREQ, IDLETIME, REFCOUNT, HELP)
@param args
The key to inspect (and any subcommand-specific arguments)
@returns
Promise that resolves with the subcommand's result
await redis.set("mykey", "hello");
await redis.object("ENCODING", "mykey"); // "embstr"Referenced types
type KeyLike = string | ArrayBufferView | Blob