HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulehedis-0.16.4Haskell2010

Database.Redis.ProtocolPipelining

A module for automatic, optimal protocol pipelining.

Protocol pipelining is a technique in which multiple requests are written out to a single socket without waiting for the corresponding responses. The pipelining of requests results in a dramatic improvement in protocol performance.

Optimal Pipelining

uses the least number of network packets possible

Automatic Pipelining

means that requests are implicitly pipelined as much as possible, i.e. as long as a request's response is not used before any subsequent requests.

  • 1 type
  • 11 values
  • Packagehedis-0.16.4
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceProtocolPipelining.hs
valuesend :: Connection -> ByteString -> IO ()
#

Write the request to the socket output buffer, without actually sending. The Handle is hFlushed when reading replies from the connCtx.

valueflush :: Connection -> IO ()
#

Flush the socket. Normally, the socket is flushed in recv (actually conGetReplies), but for the multithreaded pub/sub code, the sending thread needs to explicitly flush the subscription change requests.