Copyright | (c) 2020-2021 Tim Emiola |
---|---|
License | BSD3 |
Maintainer | Tim Emiola <adetokunbo@users.noreply.github.com> |
Safe Haskell | None |
Language | Haskell2010 |
Implements a cache for the demo service
Synopsis
- deleteContact :: Connection -> ContactID -> IO ()
- loadContact :: Connection -> ContactID -> IO (Maybe Contact)
- saveContact :: Connection -> ContactID -> Contact -> IO ()
- runRedisAction :: Connection -> Redis a -> IO a
- data Connection
- defaultConn :: IO Connection
Cache services
deleteContact :: Connection -> ContactID -> IO () Source #
loadContact :: Connection -> ContactID -> IO (Maybe Contact) Source #
saveContact :: Connection -> ContactID -> Contact -> IO () Source #
runRedisAction :: Connection -> Redis a -> IO a Source #
Redis Connection
data Connection #
A threadsafe pool of network connections to a Redis server. Use the
connect
function to create one.
defaultConn :: IO Connection Source #
A default for local development .