Skip to content

Commit

Permalink
feat: add ability to run commands on the RedisManager class
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 28, 2023
1 parent 8300ac1 commit 7dd89a0
Show file tree
Hide file tree
Showing 7 changed files with 710 additions and 69 deletions.
8 changes: 8 additions & 0 deletions src/connections/abstract_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ export abstract class AbstractConnection<T extends Redis | Cluster> extends Even
return this.ioSubscriberConnection?.status
}

/**
* Get the number of commands queued in automatic pipelines.
* This is not available (and returns 0) until the cluster is connected and slots information have been received.
*/
get autoPipelineQueueSize() {
return this.ioConnection.autoPipelineQueueSize
}

/**
* Parent class must implement makeSubscriberConnection
*/
Expand Down
Loading

0 comments on commit 7dd89a0

Please sign in to comment.