| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Redis.ConnectionContext
Documentation
data ConnectionContext Source #
Constructors
| NormalHandle Handle | |
| TLSContext Context Handle |
Instances
| Show ConnectionContext Source # | |
Defined in Database.Redis.ConnectionContext Methods showsPrec :: Int -> ConnectionContext -> ShowS # show :: ConnectionContext -> String # showList :: [ConnectionContext] -> ShowS # | |
newtype ConnectTimeout Source #
Constructors
| ConnectTimeout ConnectPhase |
Instances
| Exception ConnectTimeout Source # | |
Defined in Database.Redis.ConnectionContext Methods toException :: ConnectTimeout -> SomeException # fromException :: SomeException -> Maybe ConnectTimeout # displayException :: ConnectTimeout -> String # backtraceDesired :: ConnectTimeout -> Bool # | |
| Show ConnectTimeout Source # | |
Defined in Database.Redis.ConnectionContext Methods showsPrec :: Int -> ConnectTimeout -> ShowS # show :: ConnectTimeout -> String # showList :: [ConnectTimeout] -> ShowS # | |
data ConnectionLostException Source #
Constructors
| ConnectionLost |
Instances
| Exception ConnectionLostException Source # | |
| Show ConnectionLostException Source # | |
Defined in Database.Redis.ConnectionContext Methods showsPrec :: Int -> ConnectionLostException -> ShowS # show :: ConnectionLostException -> String # showList :: [ConnectionLostException] -> ShowS # | |
data ConnectAddr Source #
Constructors
| ConnectAddrHostPort HostName PortNumber | |
| ConnectAddrUnixSocket String |
Instances
| Show ConnectAddr Source # | |
Defined in Database.Redis.ConnectionContext Methods showsPrec :: Int -> ConnectAddr -> ShowS # show :: ConnectAddr -> String # showList :: [ConnectAddr] -> ShowS # | |
| Eq ConnectAddr Source # | |
Defined in Database.Redis.ConnectionContext | |
connect :: ConnectAddr -> Maybe Int -> Maybe ClientParams -> IO ConnectionContext Source #
disconnect :: ConnectionContext -> IO () Source #
send :: ConnectionContext -> ByteString -> IO () Source #
recv :: ConnectionContext -> IO ByteString Source #
errConnClosed :: IO a Source #
flush :: ConnectionContext -> IO () Source #
ioErrorToConnLost :: IO a -> IO a Source #