Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- cached :: (FromJSON v, ToJSON v) => (u -> Maybe Connection) -> ByteString -> GenHaxl u w (Maybe v) -> GenHaxl u w (Maybe v)
- cached' :: (FromJSON v, ToJSON v) => (u -> Maybe Connection) -> ByteString -> GenHaxl u w v -> GenHaxl u w v
- remove :: (u -> Maybe Connection) -> ByteString -> GenHaxl u w ()
- removeAll :: (u -> Maybe Connection) -> [ByteString] -> GenHaxl u w ()
- initRedisState :: Int -> ByteString -> State RedisReq
Documentation
cached :: (FromJSON v, ToJSON v) => (u -> Maybe Connection) -> ByteString -> GenHaxl u w (Maybe v) -> GenHaxl u w (Maybe v) Source #
Return the cached result of the action or, in the case of a cache miss, execute the action and insert it in the cache.
cached' :: (FromJSON v, ToJSON v) => (u -> Maybe Connection) -> ByteString -> GenHaxl u w v -> GenHaxl u w v Source #
remove :: (u -> Maybe Connection) -> ByteString -> GenHaxl u w () Source #
removeAll :: (u -> Maybe Connection) -> [ByteString] -> GenHaxl u w () Source #
initRedisState :: Int -> ByteString -> State RedisReq Source #