rediscaching-haxl-0.1.0.0: Combine redis caching and haxl.

Safe HaskellNone
LanguageHaskell2010

Haxl.RedisCache

Synopsis

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 #