Copyright | (c) 2021 t4ccer |
---|---|
License | BSD3 |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Simple Redis backed wai-session backend. This module allows you to store session data of wai-sessions in a Redis database.
Synopsis
- dbStore :: (MonadIO m1, MonadIO m2, Eq k, Serialize k, Serialize v) => SessionSettings -> m2 (SessionStore m1 k v)
- clearSession :: MonadIO m => SessionSettings -> ByteString -> m ()
- data SessionSettings = SessionSettings {}
Documentation
dbStore :: (MonadIO m1, MonadIO m2, Eq k, Serialize k, Serialize v) => SessionSettings -> m2 (SessionStore m1 k v) Source #
Create new redis backend wai session store
:: MonadIO m | |
=> SessionSettings | |
-> ByteString | Session id |
-> m () |
Invalidate session id
data SessionSettings Source #
Settings to control session store
SessionSettings | |
|
Instances
Default SessionSettings Source # | |
Defined in Network.Wai.Session.Redis def :: SessionSettings # |