hedis 0.10.2 → 0.10.3
raw patch · 4 files changed
+17/−3 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Database.Redis: disconnect :: Connection -> IO ()
- Database.Redis: data PortID :: *
+ Database.Redis: data PortID
Files
- CHANGELOG +4/−0
- hedis.cabal +1/−1
- src/Database/Redis.hs +7/−1
- src/Database/Redis/Core.hs +5/−1
CHANGELOG view
@@ -1,5 +1,9 @@ # Changelog for Hedis +## 0.10.3++* PR #110. Add disconnect which destroys all (idle) resources in the pool+ ## 0.10.2 * PR #108. Add TLS support
hedis.cabal view
@@ -1,5 +1,5 @@ name: hedis-version: 0.10.2+version: 0.10.3 synopsis: Client library for the Redis datastore: supports full command set, pipelining.
src/Database/Redis.hs view
@@ -34,6 +34,12 @@ -- world <- get \"world\" -- liftIO $ print (hello,world) -- @+ --+ -- disconnect all idle resources in the connection pool:+ --+ -- @+ -- 'disconnect' 'conn'+ -- @ -- ** Command Type Signatures -- |Redis commands behave differently when issued in- or outside of a@@ -156,7 +162,7 @@ RedisCtx(..), MonadRedis(..), -- * Connection- Connection, ConnectError(..), connect, checkedConnect,+ Connection, ConnectError(..), connect, checkedConnect, disconnect, ConnectInfo(..), defaultConnectInfo, parseConnectInfo, HostName, PortID(..),
src/Database/Redis/Core.hs view
@@ -3,7 +3,7 @@ DeriveDataTypeable #-} module Database.Redis.Core (- Connection(..), ConnectError(..), connect, checkedConnect,+ Connection(..), ConnectError(..), connect, checkedConnect, disconnect, ConnectInfo(..), defaultConnectInfo, Redis(), runRedis, unRedis, reRedis, RedisCtx(..), MonadRedis(..),@@ -253,6 +253,10 @@ conn <- connect connInfo runRedis conn $ void ping return conn++-- |Destroy all idle resources in the pool.+disconnect :: Connection -> IO ()+disconnect (Conn pool) = destroyAllResources pool -- The AUTH command. It has to be here because it is used in 'connect'. auth