Copyright | (c) 2020-2021 Tim Emiola |
---|---|
License | BSD3 |
Maintainer | Tim Emiola <adetokunbo@users.noreply.github.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
TmpProc.Example1.Cache
Contents
Description
Implements a cache for the demo service
Synopsis
- deleteContact :: Locator -> ContactID -> IO ()
- loadContact :: Locator -> ContactID -> IO (Maybe Contact)
- saveContact :: Locator -> ContactID -> Contact -> IO ()
- runRedisAction :: Locator -> Redis a -> IO a
- type Locator = ConnectInfo
- defaultLoc :: Locator
Cache services
Redis location
type Locator = ConnectInfo Source #
Specifies the Redis
instance to use as a cache .
defaultLoc :: Locator Source #
A default for local development .