/usr/share/doc/libghc-hedis-doc/html/Database-Redis.html is in libghc-hedis-doc 0.6.9-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Database.Redis</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Database-Redis.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Database-Redis.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hedis-0.6.9: Client library for the Redis datastore: supports full command set,
pipelining.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Database.Redis</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">How To Use This Module</a><ul><li><a href="#g:2">Command Type Signatures</a></li><li><a href="#g:3">Lua Scripting</a></li><li><a href="#g:4">Automatic Pipelining</a></li><li><a href="#g:5">Error Behavior</a></li></ul></li><li><a href="#g:6">The Redis Monad</a></li><li><a href="#g:7">Connection</a></li><li><a href="#g:8">Commands</a><ul><li><a href="#g:9">Connection</a></li><li><a href="#g:10">Keys</a></li><li><a href="#g:11">Hashes</a></li><li><a href="#g:12">Lists</a></li><li><a href="#g:13">Scripting</a></li><li><a href="#g:14">Server</a></li><li><a href="#g:15">Sets</a></li><li><a href="#g:16">Sorted Sets</a></li><li><a href="#g:17">Strings</a></li></ul></li><li><a href="#g:18">Unimplemented Commands</a></li><li><a href="#g:19">Transactions</a></li><li><a href="#g:20">Pub/Sub</a></li><li><a href="#g:21">Low-Level Command API</a></li></ul></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:Redis">Redis</a> a</li><li class="src short"><a href="#v:runRedis">runRedis</a> :: <a href="Database-Redis.html#t:Connection">Connection</a> -> <a href="Database-Redis.html#t:Redis">Redis</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><span class="keyword">class</span> <a href="Database-Redis.html#t:MonadRedis">MonadRedis</a> m => <a href="#t:RedisCtx">RedisCtx</a> m f | m -> f</li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a href="#t:MonadRedis">MonadRedis</a> m</li><li class="src short"><span class="keyword">data</span> <a href="#t:Connection">Connection</a></li><li class="src short"><a href="#v:connect">connect</a> :: <a href="Database-Redis.html#t:ConnectInfo">ConnectInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="Database-Redis.html#t:Connection">Connection</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:ConnectInfo">ConnectInfo</a> = <a href="#v:ConnInfo">ConnInfo</a> {<ul class="subs"><li><a href="#v:connectHost">connectHost</a> :: <a href="Database-Redis.html#t:HostName">HostName</a></li><li><a href="#v:connectPort">connectPort</a> :: <a href="Database-Redis.html#t:PortID">PortID</a></li><li><a href="#v:connectAuth">connectAuth</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li><a href="#v:connectDatabase">connectDatabase</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:connectMaxConnections">connectMaxConnections</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:connectMaxIdleTime">connectMaxIdleTime</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></li></ul>}</li><li class="src short"><a href="#v:defaultConnectInfo">defaultConnectInfo</a> :: <a href="Database-Redis.html#t:ConnectInfo">ConnectInfo</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:HostName">HostName</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:PortID">PortID</a> :: *<ul class="subs"><li>= <a href="#v:Service">Service</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:PortNumber">PortNumber</a> <a href="file:///usr/share/doc/libghc-network-doc/html/Network-Socket-Internal.html#t:PortNumber">PortNumber</a></li><li>| <a href="#v:UnixSocket">UnixSocket</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li></ul></li><li class="src short"><a href="#v:auth">auth</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:echo">echo</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:ping">ping</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:quit">quit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:select">select</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:del">del</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:dump">dump</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:exists">exists</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:expire">expire</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:expireat">expireat</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:keys">keys</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:migrate">migrate</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:move">move</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:objectRefcount">objectRefcount</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:objectEncoding">objectEncoding</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:objectIdletime">objectIdletime</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:persist">persist</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:pexpire">pexpire</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:pexpireat">pexpireat</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:pttl">pttl</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:randomkey">randomkey</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:rename">rename</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:renamenx">renamenx</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:restore">restore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:SortOpts">SortOpts</a> = <a href="#v:SortOpts">SortOpts</a> {<ul class="subs"><li><a href="#v:sortBy">sortBy</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li><a href="#v:sortLimit">sortLimit</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li><a href="#v:sortGet">sortGet</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</li><li><a href="#v:sortOrder">sortOrder</a> :: <a href="Database-Redis.html#t:SortOrder">SortOrder</a></li><li><a href="#v:sortAlpha">sortAlpha</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li></ul>}</li><li class="src short"><a href="#v:defaultSortOpts">defaultSortOpts</a> :: <a href="Database-Redis.html#t:SortOpts">SortOpts</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:SortOrder">SortOrder</a><ul class="subs"><li>= <a href="#v:Asc">Asc</a></li><li>| <a href="#v:Desc">Desc</a></li></ul></li><li class="src short"><a href="#v:sort">sort</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Database-Redis.html#t:SortOpts">SortOpts</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:sortStore">sortStore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="Database-Redis.html#t:SortOpts">SortOpts</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:ttl">ttl</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:RedisType">RedisType</a><ul class="subs"><li>= <a href="#v:None">None</a></li><li>| <a href="#v:String">String</a></li><li>| <a href="#v:Hash">Hash</a></li><li>| <a href="#v:List">List</a></li><li>| <a href="#v:Set">Set</a></li><li>| <a href="#v:ZSet">ZSet</a></li></ul></li><li class="src short"><a href="#v:getType">getType</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:RedisType">RedisType</a>)</li><li class="src short"><a href="#v:hdel">hdel</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:hexists">hexists</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:hget">hget</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:hgetall">hgetall</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)])</li><li class="src short"><a href="#v:hincrby">hincrby</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:hincrbyfloat">hincrbyfloat</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><a href="#v:hkeys">hkeys</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:hlen">hlen</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:hmget">hmget</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:hmset">hmset</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)] -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:hset">hset</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:hsetnx">hsetnx</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:hvals">hvals</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:blpop">blpop</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)))</li><li class="src short"><a href="#v:brpop">brpop</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)))</li><li class="src short"><a href="#v:brpoplpush">brpoplpush</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:lindex">lindex</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:linsertBefore">linsertBefore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:linsertAfter">linsertAfter</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:llen">llen</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:lpop">lpop</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:lpush">lpush</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:lpushx">lpushx</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:lrange">lrange</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:lrem">lrem</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:lset">lset</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:ltrim">ltrim</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:rpop">rpop</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:rpoplpush">rpoplpush</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:rpush">rpush</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:rpushx">rpushx</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:eval">eval</a> :: (<a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> a) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f a)</li><li class="src short"><a href="#v:evalsha">evalsha</a> :: (<a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> a) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f a)</li><li class="src short"><a href="#v:scriptExists">scriptExists</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>])</li><li class="src short"><a href="#v:scriptFlush">scriptFlush</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:scriptKill">scriptKill</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:scriptLoad">scriptLoad</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:bgrewriteaof">bgrewriteaof</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:bgsave">bgsave</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:configGet">configGet</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)])</li><li class="src short"><a href="#v:configResetstat">configResetstat</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:configSet">configSet</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:dbsize">dbsize</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:debugObject">debugObject</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:flushall">flushall</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:flushdb">flushdb</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:info">info</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:lastsave">lastsave</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:save">save</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:slaveof">slaveof</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Slowlog">Slowlog</a> = <a href="#v:Slowlog">Slowlog</a> {<ul class="subs"><li><a href="#v:slowlogId">slowlogId</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:slowlogTimestamp">slowlogTimestamp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:slowlogMicros">slowlogMicros</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:slowlogCmd">slowlogCmd</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</li></ul>}</li><li class="src short"><a href="#v:slowlogGet">slowlogGet</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [<a href="Database-Redis.html#t:Slowlog">Slowlog</a>])</li><li class="src short"><a href="#v:slowlogLen">slowlogLen</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:slowlogReset">slowlogReset</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:time">time</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>))</li><li class="src short"><a href="#v:sadd">sadd</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:scard">scard</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:sdiff">sdiff</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:sdiffstore">sdiffstore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:sinter">sinter</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:sinterstore">sinterstore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:sismember">sismember</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:smembers">smembers</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:smove">smove</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:spop">spop</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:srandmember">srandmember</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:srem">srem</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:sunion">sunion</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:sunionstore">sunionstore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zadd">zadd</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zcard">zcard</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zcount">zcount</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zincrby">zincrby</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Aggregate">Aggregate</a><ul class="subs"><li>= <a href="#v:Sum">Sum</a></li><li>| <a href="#v:Min">Min</a></li><li>| <a href="#v:Max">Max</a></li></ul></li><li class="src short"><a href="#v:zinterstore">zinterstore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="Database-Redis.html#t:Aggregate">Aggregate</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zinterstoreWeights">zinterstoreWeights</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)] -> <a href="Database-Redis.html#t:Aggregate">Aggregate</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zrange">zrange</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:zrangeWithscores">zrangeWithscores</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</li><li class="src short"><a href="#v:zrangebyscore">zrangebyscore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:zrangebyscoreWithscores">zrangebyscoreWithscores</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</li><li class="src short"><a href="#v:zrangebyscoreLimit">zrangebyscoreLimit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:zrangebyscoreWithscoresLimit">zrangebyscoreWithscoresLimit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</li><li class="src short"><a href="#v:zrank">zrank</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>))</li><li class="src short"><a href="#v:zrem">zrem</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zremrangebyrank">zremrangebyrank</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zremrangebyscore">zremrangebyscore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zrevrange">zrevrange</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:zrevrangeWithscores">zrevrangeWithscores</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</li><li class="src short"><a href="#v:zrevrangebyscore">zrevrangebyscore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:zrevrangebyscoreWithscores">zrevrangebyscoreWithscores</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</li><li class="src short"><a href="#v:zrevrangebyscoreLimit">zrevrangebyscoreLimit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:zrevrangebyscoreWithscoresLimit">zrevrangebyscoreWithscoresLimit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</li><li class="src short"><a href="#v:zrevrank">zrevrank</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>))</li><li class="src short"><a href="#v:zscore">zscore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>))</li><li class="src short"><a href="#v:zunionstore">zunionstore</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="Database-Redis.html#t:Aggregate">Aggregate</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:zunionstoreWeights">zunionstoreWeights</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)] -> <a href="Database-Redis.html#t:Aggregate">Aggregate</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:append">append</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:bitcount">bitcount</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:bitcountRange">bitcountRange</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:bitopAnd">bitopAnd</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:bitopOr">bitopOr</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:bitopXor">bitopXor</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:bitopNot">bitopNot</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:decr">decr</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:decrby">decrby</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:get">get</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:getbit">getbit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:getrange">getrange</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:getset">getset</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</li><li class="src short"><a href="#v:incr">incr</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:incrby">incrby</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:incrbyfloat">incrbyfloat</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><a href="#v:mget">mget</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</li><li class="src short"><a href="#v:mset">mset</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)] -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:msetnx">msetnx</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)] -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:psetex">psetex</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:set">set</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:setbit">setbit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:setex">setex</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:setnx">setnx</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</li><li class="src short"><a href="#v:setrange">setrange</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:strlen">strlen</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:watch">watch</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:unwatch">unwatch</a> :: <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> <a href="Database-Redis.html#t:Status">Status</a>)</li><li class="src short"><a href="#v:multiExec">multiExec</a> :: <a href="Database-Redis.html#t:RedisTx">RedisTx</a> (<a href="Database-Redis.html#t:Queued">Queued</a> a) -> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="Database-Redis.html#t:TxResult">TxResult</a> a)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Queued">Queued</a> a</li><li class="src short"><span class="keyword">data</span> <a href="#t:TxResult">TxResult</a> a<ul class="subs"><li>= <a href="#v:TxSuccess">TxSuccess</a> a</li><li>| <a href="#v:TxAborted">TxAborted</a></li><li>| <a href="#v:TxError">TxError</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:RedisTx">RedisTx</a> a</li><li class="src short"><a href="#v:publish">publish</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a> -> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</li><li class="src short"><a href="#v:pubSub">pubSub</a> :: <a href="Database-Redis.html#t:PubSub">PubSub</a> -> (<a href="Database-Redis.html#t:Message">Message</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="Database-Redis.html#t:PubSub">PubSub</a>) -> <a href="Database-Redis.html#t:Redis">Redis</a> ()</li><li class="src short"><span class="keyword">data</span> <a href="#t:Message">Message</a><ul class="subs"><li>= <a href="#v:Message">Message</a> { <ul class="subs"><li><a href="#v:msgChannel">msgChannel</a>, <a href="#v:msgMessage">msgMessage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li></ul> }</li><li>| <a href="#v:PMessage">PMessage</a> { <ul class="subs"><li><a href="#v:msgPattern">msgPattern</a>, <a href="#v:msgChannel">msgChannel</a>, <a href="#v:msgMessage">msgMessage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li></ul> }</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:PubSub">PubSub</a></li><li class="src short"><a href="#v:subscribe">subscribe</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="Database-Redis.html#t:PubSub">PubSub</a></li><li class="src short"><a href="#v:unsubscribe">unsubscribe</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="Database-Redis.html#t:PubSub">PubSub</a></li><li class="src short"><a href="#v:psubscribe">psubscribe</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="Database-Redis.html#t:PubSub">PubSub</a></li><li class="src short"><a href="#v:punsubscribe">punsubscribe</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> <a href="Database-Redis.html#t:PubSub">PubSub</a></li><li class="src short"><a href="#v:sendRequest">sendRequest</a> :: (<a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> a) => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f a)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Reply">Reply</a><ul class="subs"><li>= <a href="#v:SingleLine">SingleLine</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li>| <a href="#v:Error">Error</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li><li>| <a href="#v:Integer">Integer</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></li><li>| <a href="#v:Bulk">Bulk</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li>| <a href="#v:MultiBulk">MultiBulk</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Database-Redis.html#t:Reply">Reply</a>])</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:Status">Status</a><ul class="subs"><li>= <a href="#v:Ok">Ok</a></li><li>| <a href="#v:Pong">Pong</a></li><li>| <a href="#v:Status">Status</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></li></ul></li><li class="src short"><span class="keyword">class</span> <a href="#t:RedisResult">RedisResult</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:decode">decode</a> :: <a href="Database-Redis.html#t:Reply">Reply</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> a</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:ConnectionLostException">ConnectionLostException</a> = <a href="#v:ConnectionLost">ConnectionLost</a></li></ul></div><div id="interface"><h1 id="g:1">How To Use This Module</h1><div class="doc"><p>Connect to a Redis server:</p><pre>-- connects to localhost:6379
conn <- <code><a href="Database-Redis.html#v:connect">connect</a></code> <code><a href="Database-Redis.html#v:defaultConnectInfo">defaultConnectInfo</a></code>
</pre><p>Send commands to the server:</p><pre>{-# LANGUAGE OverloadedStrings #-}
...
<code><a href="Database-Redis.html#v:runRedis">runRedis</a></code> conn $ do
<code><a href="Database-Redis.html#v:set">set</a></code> "hello" "hello"
set "world" "world"
hello <- <code><a href="Database-Redis.html#v:get">get</a></code> "hello"
world <- get "world"
liftIO $ print (hello,world)
</pre></div><h2 id="g:2">Command Type Signatures</h2><div class="doc"><p>Redis commands behave differently when issued in- or outside of a
transaction. To make them work in both contexts, most command functions
have a type signature similar to the following:</p><pre> <code><a href="Database-Redis.html#v:echo">echo</a></code> :: (<code><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a></code> m f) => ByteString -> m (f ByteString)
</pre><p>Here is how to interpret this type signature:</p><ul><li>The argument types are independent of the execution context. <code><a href="Database-Redis.html#v:echo">echo</a></code>
always takes a <code>ByteString</code> parameter, whether in- or outside of a
transaction. This is true for all command functions.</li><li>All Redis commands return their result wrapped in some "container".
The type <code>f</code> of this container depends on the commands execution
context <code>m</code>. The <code>ByteString</code> return type in the example is specific
to the <code><a href="Database-Redis.html#v:echo">echo</a></code> command. For other commands, it will often be another
type.</li><li>In the "normal" context <code><a href="Database-Redis.html#t:Redis">Redis</a></code>, outside of any transactions,
results are wrapped in an <code><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a></code> <code><a href="Database-Redis.html#t:Reply">Reply</a></code></code>.</li><li>Inside a transaction, in the <code><a href="Database-Redis.html#t:RedisTx">RedisTx</a></code> context, results are wrapped in
a <code><a href="Database-Redis.html#t:Queued">Queued</a></code>.</li></ul><p>In short, you can view any command with a <code><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a></code> constraint in the
type signature, to "have two types". For example <code><a href="Database-Redis.html#v:echo">echo</a></code> "has both
types":</p><pre> echo :: ByteString -> Redis (Either Reply ByteString)
echo :: ByteString -> RedisTx (Queued ByteString)
</pre><dl><dt>Exercise</dt><dd>What are the types of <code><a href="Database-Redis.html#v:expire">expire</a></code> inside a transaction and
<code><a href="Database-Redis.html#v:lindex">lindex</a></code> outside of a transaction? The solutions are at the very
bottom of this page.</dd></dl></div><h2 id="g:3">Lua Scripting</h2><div class="doc"><p>Lua values returned from the <code><a href="Database-Redis.html#v:eval">eval</a></code> and <code><a href="Database-Redis.html#v:evalsha">evalsha</a></code> functions will be
converted to Haskell values by the <code><a href="Database-Redis.html#v:decode">decode</a></code> function from the
<code><a href="Database-Redis.html#t:RedisResult">RedisResult</a></code> type class.</p><pre> Lua Type | Haskell Type | Conversion Example
--------------|--------------------|-----------------------------
Number | Integer | 1.23 => 1
String | ByteString, Double | "1.23" => "1.23" or 1.23
Boolean | Bool | false => False
Table | List | {1,2} => [1,2]
</pre><p>Additionally, any of the Haskell types from the table above can be
wrapped in a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a></code>:</p><pre> 42 => Just 42 :: Maybe Integer
nil => Nothing :: Maybe Integer
</pre><p>Note that Redis imposes some limitations on the possible conversions:</p><ul><li>Lua numbers can only be converted to Integers. Only Lua strings can be
interpreted as Doubles.</li><li>Associative Lua tables can not be converted at all. Returned tables
must be "arrays", i.e. indexed only by integers.</li></ul><p>The Redis Scripting website (<a href="http://redis.io/commands/eval">http://redis.io/commands/eval</a>)
documents the exact semantics of the scripting commands and value
conversion.</p></div><h2 id="g:4">Automatic Pipelining</h2><div class="doc"><p>Commands are automatically pipelined as much as possible. For example,
in the above "hello world" example, all four commands are pipelined.
Automatic pipelining makes use of Haskell's laziness. As long as a
previous reply is not evaluated, subsequent commands can be pipelined.</p><p>Automatic pipelining also works across several calls to <code><a href="Database-Redis.html#v:runRedis">runRedis</a></code>, as
long as replies are only evaluated <em>outside</em> the <code><a href="Database-Redis.html#v:runRedis">runRedis</a></code> block.</p><p>To keep memory usage low, the number of requests "in the pipeline" is
limited (per connection) to 1000. After that number, the next command is
sent only when at least one reply has been received. That means, command
functions may block until there are less than 1000 outstanding replies.</p></div><h2 id="g:5">Error Behavior</h2><div class="doc"><dl><dt>Operations against keys holding the wrong kind of value:</dt><dd>Outside of a
transaction, if the Redis server returns an <code><a href="Database-Redis.html#v:Error">Error</a></code>, command functions
will return <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#v:Left">Left</a></code> the <code><a href="Database-Redis.html#t:Reply">Reply</a></code>. The library user can inspect the error
message to gain information on what kind of error occured.</dd><dt>Connection to the server lost:</dt><dd>In case of a lost connection, command
functions throw a <code><a href="Database-Redis.html#t:ConnectionLostException">ConnectionLostException</a></code>. It can only be caught
outside of <code><a href="Database-Redis.html#v:runRedis">runRedis</a></code>.</dd><dt>Exceptions:</dt><dd>Any exceptions can only be caught <em>outside</em> of <code><a href="Database-Redis.html#v:runRedis">runRedis</a></code>.
This way the connection pool can properly close the connection, making
sure it is not left in an unusable state, e.g. closed or inside a
transaction.</dd></dl></div><h1 id="g:6">The Redis Monad</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Redis" class="def">Redis</a> a <a href="src/Database-Redis-Core.html#Redis" class="link">Source</a></p><div class="doc"><p>Context for normal command execution, outside of transactions. Use
<code><a href="Database-Redis.html#v:runRedis">runRedis</a></code> to run actions of this type.</p><p>In this context, each result is wrapped in an <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a></code> to account for the
possibility of Redis returning an <code><a href="Database-Redis.html#v:Error">Error</a></code> reply.</p></div><div class="subs instances"><p id="control.i:Redis" class="caption collapser" onclick="toggleSection('i:Redis')">Instances</p><div id="section.i:Redis" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> <a href="Database-Redis.html#t:Redis">Redis</a></span> <a href="src/Database-Redis-Core.html#line-36" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> <a href="Database-Redis.html#t:Redis">Redis</a></span> <a href="src/Database-Redis-Core.html#line-36" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Database-Redis.html#t:Redis">Redis</a></span> <a href="src/Database-Redis-Core.html#line-36" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.4.2.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> <a href="Database-Redis.html#t:Redis">Redis</a></span> <a href="src/Database-Redis-Core.html#line-36" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:MonadRedis">MonadRedis</a> <a href="Database-Redis.html#t:Redis">Redis</a></span> <a href="src/Database-Redis-Core.html#line-52" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a>)</span> <a href="src/Database-Redis-Core.html#line-46" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:runRedis" class="def">runRedis</a> :: <a href="Database-Redis.html#t:Connection">Connection</a> -> <a href="Database-Redis.html#t:Redis">Redis</a> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> a <a href="src/Database-Redis-Core.html#runRedis" class="link">Source</a></p><div class="doc"><p>Interact with a Redis datastore specified by the given <code><a href="Database-Redis.html#t:Connection">Connection</a></code>.</p><p>Each call of <code><a href="Database-Redis.html#v:runRedis">runRedis</a></code> takes a network connection from the <code><a href="Database-Redis.html#t:Connection">Connection</a></code>
pool and runs the given <code><a href="Database-Redis.html#t:Redis">Redis</a></code> action. Calls to <code><a href="Database-Redis.html#v:runRedis">runRedis</a></code> may thus block
while all connections from the pool are in use.</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Database-Redis.html#t:MonadRedis">MonadRedis</a> m => <a name="t:RedisCtx" class="def">RedisCtx</a> m f | m -> f <a href="src/Database-Redis-Core.html#RedisCtx" class="link">Source</a></p><div class="doc"><p>This class captures the following behaviour: In a context <code>m</code>, a command
will return it's result wrapped in a "container" of type <code>f</code>.</p><p>Please refer to the Command Type Signatures section of this page for more
information.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src">returnDecode</p></div><div class="subs instances"><p id="control.i:RedisCtx" class="caption collapser" onclick="toggleSection('i:RedisCtx')">Instances</p><div id="section.i:RedisCtx" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a> <a href="Database-Redis.html#t:Queued">Queued</a></span> <a href="src/Database-Redis-Core.html#line-34" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a>)</span> <a href="src/Database-Redis-Core.html#line-46" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m => <a name="t:MonadRedis" class="def">MonadRedis</a> m <a href="src/Database-Redis-Core.html#MonadRedis" class="link">Source</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src">liftRedis</p></div><div class="subs instances"><p id="control.i:MonadRedis" class="caption collapser" onclick="toggleSection('i:MonadRedis')">Instances</p><div id="section.i:MonadRedis" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:MonadRedis">MonadRedis</a> <a href="Database-Redis.html#t:Redis">Redis</a></span> <a href="src/Database-Redis-Core.html#line-52" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:MonadRedis">MonadRedis</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a></span> <a href="src/Database-Redis-Core.html#line-31" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:7">Connection</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Connection" class="def">Connection</a> <a href="src/Database-Redis-Core.html#Connection" class="link">Source</a></p><div class="doc"><p>A threadsafe pool of network connections to a Redis server. Use the
<code><a href="Database-Redis.html#v:connect">connect</a></code> function to create one.</p></div></div><div class="top"><p class="src"><a name="v:connect" class="def">connect</a> :: <a href="Database-Redis.html#t:ConnectInfo">ConnectInfo</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="Database-Redis.html#t:Connection">Connection</a> <a href="src/Database-Redis-Core.html#connect" class="link">Source</a></p><div class="doc"><p>Opens a <code><a href="Database-Redis.html#t:Connection">Connection</a></code> to a Redis server designated by the given
<code><a href="Database-Redis.html#t:ConnectInfo">ConnectInfo</a></code>.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ConnectInfo" class="def">ConnectInfo</a> <a href="src/Database-Redis-Core.html#ConnectInfo" class="link">Source</a></p><div class="doc"><p>Information for connnecting to a Redis server.</p><p>It is recommended to not use the <code><a href="Database-Redis.html#v:ConnInfo">ConnInfo</a></code> data constructor directly.
Instead use <code><a href="Database-Redis.html#v:defaultConnectInfo">defaultConnectInfo</a></code> and update it with record syntax. For
example to connect to a password protected Redis server running on localhost
and listening to the default port:</p><pre>myConnectInfo :: ConnectInfo
myConnectInfo = defaultConnectInfo {connectAuth = Just "secret"}
</pre></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ConnInfo" class="def">ConnInfo</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:connectHost" class="def">connectHost</a> :: <a href="Database-Redis.html#t:HostName">HostName</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:connectPort" class="def">connectPort</a> :: <a href="Database-Redis.html#t:PortID">PortID</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:connectAuth" class="def">connectAuth</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></dt><dd class="doc"><p>When the server is protected by a password, set <code><a href="Database-Redis.html#v:connectAuth">connectAuth</a></code> to <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#v:Just">Just</a></code>
the password. Each connection will then authenticate by the <code><a href="Database-Redis.html#v:auth">auth</a></code>
command.</p></dd><dt class="src"><a name="v:connectDatabase" class="def">connectDatabase</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Each connection will <code><a href="Database-Redis.html#v:select">select</a></code> the database with the given index.</p></dd><dt class="src"><a name="v:connectMaxConnections" class="def">connectMaxConnections</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Maximum number of connections to keep open. The smallest acceptable
value is 1.</p></dd><dt class="src"><a name="v:connectMaxIdleTime" class="def">connectMaxIdleTime</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/time-1.5.0.1/Data-Time-Clock.html#t:NominalDiffTime">NominalDiffTime</a></dt><dd class="doc"><p>Amount of time for which an unused connection is kept open. The
smallest acceptable value is 0.5 seconds. If the <code>timeout</code> value in
your redis.conf file is non-zero, it should be larger than
<code><a href="Database-Redis.html#v:connectMaxIdleTime">connectMaxIdleTime</a></code>.</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:ConnectInfo" class="caption collapser" onclick="toggleSection('i:ConnectInfo')">Instances</p><div id="section.i:ConnectInfo" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:ConnectInfo">ConnectInfo</a></span> <a href="src/Database-Redis-Core.html#line-134" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:defaultConnectInfo" class="def">defaultConnectInfo</a> :: <a href="Database-Redis.html#t:ConnectInfo">ConnectInfo</a> <a href="src/Database-Redis-Core.html#defaultConnectInfo" class="link">Source</a></p><div class="doc"><p>Default information for connecting:</p><pre> connectHost = "localhost"
connectPort = PortNumber 6379 -- Redis default port
connectAuth = Nothing -- No password
connectDatabase = 0 -- SELECT database 0
connectMaxConnections = 50 -- Up to 50 connections
connectMaxIdleTime = 30 -- Keep open for 30 seconds
</pre></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:HostName" class="def">HostName</a> = <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Either a host name e.g., <code>"haskell.org"</code> or a numeric host
address string consisting of a dotted decimal IPv4 address or an
IPv6 address e.g., <code>"192.168.0.1"</code>.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:PortID" class="def">PortID</a> :: *</p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Service" class="def">Service</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:PortNumber" class="def">PortNumber</a> <a href="file:///usr/share/doc/libghc-network-doc/html/Network-Socket-Internal.html#t:PortNumber">PortNumber</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:UnixSocket" class="def">UnixSocket</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:PortID" class="caption collapser" onclick="toggleSection('i:PortID')">Instances</p><div id="section.i:PortID" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:PortID">PortID</a></span></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:PortID">PortID</a></span></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:8">Commands</h1><h2 id="g:9">Connection</h2><div class="top"><p class="src"><a name="v:auth" class="def">auth</a> <a href="src/Database-Redis-Core.html#auth" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>password</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Authenticate to the server (<a href="http://redis.io/commands/auth">http://redis.io/commands/auth</a>).</p></div><div class="top"><p class="src"><a name="v:echo" class="def">echo</a> <a href="src/Database-Redis-Commands.html#echo" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>message</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Echo the given string (<a href="http://redis.io/commands/echo">http://redis.io/commands/echo</a>).</p></div><div class="top"><p class="src"><a name="v:ping" class="def">ping</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#ping" class="link">Source</a></p></div><div class="doc"><p>Ping the server (<a href="http://redis.io/commands/ping">http://redis.io/commands/ping</a>).</p></div><div class="top"><p class="src"><a name="v:quit" class="def">quit</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#quit" class="link">Source</a></p></div><div class="doc"><p>Close the connection (<a href="http://redis.io/commands/quit">http://redis.io/commands/quit</a>).</p></div><div class="top"><p class="src"><a name="v:select" class="def">select</a> <a href="src/Database-Redis-Core.html#select" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>index</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Change the selected database for the current connection (<a href="http://redis.io/commands/select">http://redis.io/commands/select</a>).</p></div><h2 id="g:10">Keys</h2><div class="top"><p class="src"><a name="v:del" class="def">del</a> <a href="src/Database-Redis-Commands.html#del" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Delete a key (<a href="http://redis.io/commands/del">http://redis.io/commands/del</a>).</p></div><div class="top"><p class="src"><a name="v:dump" class="def">dump</a> <a href="src/Database-Redis-Commands.html#dump" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a serialized version of the value stored at the specified key. (<a href="http://redis.io/commands/dump">http://redis.io/commands/dump</a>).</p></div><div class="top"><p class="src"><a name="v:exists" class="def">exists</a> <a href="src/Database-Redis-Commands.html#exists" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Determine if a key exists (<a href="http://redis.io/commands/exists">http://redis.io/commands/exists</a>).</p></div><div class="top"><p class="src"><a name="v:expire" class="def">expire</a> <a href="src/Database-Redis-Commands.html#expire" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>seconds</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set a key's time to live in seconds (<a href="http://redis.io/commands/expire">http://redis.io/commands/expire</a>).</p></div><div class="top"><p class="src"><a name="v:expireat" class="def">expireat</a> <a href="src/Database-Redis-Commands.html#expireat" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>timestamp</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the expiration for a key as a UNIX timestamp (<a href="http://redis.io/commands/expireat">http://redis.io/commands/expireat</a>).</p></div><div class="top"><p class="src"><a name="v:keys" class="def">keys</a> <a href="src/Database-Redis-Commands.html#keys" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>pattern</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Find all keys matching the given pattern (<a href="http://redis.io/commands/keys">http://redis.io/commands/keys</a>).</p></div><div class="top"><p class="src"><a name="v:migrate" class="def">migrate</a> <a href="src/Database-Redis-Commands.html#migrate" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>host</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>port</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>destinationDb</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>timeout</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Atomically transfer a key from a Redis instance to another one. (<a href="http://redis.io/commands/migrate">http://redis.io/commands/migrate</a>).</p></div><div class="top"><p class="src"><a name="v:move" class="def">move</a> <a href="src/Database-Redis-Commands.html#move" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>db</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Move a key to another database (<a href="http://redis.io/commands/move">http://redis.io/commands/move</a>).</p></div><div class="top"><p class="src"><a name="v:objectRefcount" class="def">objectRefcount</a> <a href="src/Database-Redis-ManualCommands.html#objectRefcount" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Inspect the internals of Redis objects (<a href="http://redis.io/commands/object">http://redis.io/commands/object</a>). The Redis command <code>OBJECT</code> is split up into <code><a href="Database-Redis.html#v:objectRefcount">objectRefcount</a></code>, <code><a href="Database-Redis.html#v:objectEncoding">objectEncoding</a></code>, <code><a href="Database-Redis.html#v:objectIdletime">objectIdletime</a></code>.</p></div><div class="top"><p class="src"><a name="v:objectEncoding" class="def">objectEncoding</a> <a href="src/Database-Redis-ManualCommands.html#objectEncoding" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Inspect the internals of Redis objects (<a href="http://redis.io/commands/object">http://redis.io/commands/object</a>). The Redis command <code>OBJECT</code> is split up into <code><a href="Database-Redis.html#v:objectRefcount">objectRefcount</a></code>, <code><a href="Database-Redis.html#v:objectEncoding">objectEncoding</a></code>, <code><a href="Database-Redis.html#v:objectIdletime">objectIdletime</a></code>.</p></div><div class="top"><p class="src"><a name="v:objectIdletime" class="def">objectIdletime</a> <a href="src/Database-Redis-ManualCommands.html#objectIdletime" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Inspect the internals of Redis objects (<a href="http://redis.io/commands/object">http://redis.io/commands/object</a>). The Redis command <code>OBJECT</code> is split up into <code><a href="Database-Redis.html#v:objectRefcount">objectRefcount</a></code>, <code><a href="Database-Redis.html#v:objectEncoding">objectEncoding</a></code>, <code><a href="Database-Redis.html#v:objectIdletime">objectIdletime</a></code>.</p></div><div class="top"><p class="src"><a name="v:persist" class="def">persist</a> <a href="src/Database-Redis-Commands.html#persist" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove the expiration from a key (<a href="http://redis.io/commands/persist">http://redis.io/commands/persist</a>).</p></div><div class="top"><p class="src"><a name="v:pexpire" class="def">pexpire</a> <a href="src/Database-Redis-Commands.html#pexpire" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>milliseconds</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set a key's time to live in milliseconds (<a href="http://redis.io/commands/pexpire">http://redis.io/commands/pexpire</a>).</p></div><div class="top"><p class="src"><a name="v:pexpireat" class="def">pexpireat</a> <a href="src/Database-Redis-Commands.html#pexpireat" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>millisecondsTimestamp</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the expiration for a key as a UNIX timestamp specified in milliseconds (<a href="http://redis.io/commands/pexpireat">http://redis.io/commands/pexpireat</a>).</p></div><div class="top"><p class="src"><a name="v:pttl" class="def">pttl</a> <a href="src/Database-Redis-Commands.html#pttl" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the time to live for a key in milliseconds (<a href="http://redis.io/commands/pttl">http://redis.io/commands/pttl</a>).</p></div><div class="top"><p class="src"><a name="v:randomkey" class="def">randomkey</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)) <a href="src/Database-Redis-Commands.html#randomkey" class="link">Source</a></p></div><div class="doc"><p>Return a random key from the keyspace (<a href="http://redis.io/commands/randomkey">http://redis.io/commands/randomkey</a>).</p></div><div class="top"><p class="src"><a name="v:rename" class="def">rename</a> <a href="src/Database-Redis-Commands.html#rename" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>newkey</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Rename a key (<a href="http://redis.io/commands/rename">http://redis.io/commands/rename</a>).</p></div><div class="top"><p class="src"><a name="v:renamenx" class="def">renamenx</a> <a href="src/Database-Redis-Commands.html#renamenx" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>newkey</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Rename a key, only if the new key does not exist (<a href="http://redis.io/commands/renamenx">http://redis.io/commands/renamenx</a>).</p></div><div class="top"><p class="src"><a name="v:restore" class="def">restore</a> <a href="src/Database-Redis-Commands.html#restore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>timeToLive</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>serializedValue</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Create a key using the provided serialized value, previously obtained using DUMP. (<a href="http://redis.io/commands/restore">http://redis.io/commands/restore</a>).</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SortOpts" class="def">SortOpts</a> <a href="src/Database-Redis-ManualCommands.html#SortOpts" class="link">Source</a></p><div class="doc"><p>Options for the <code><a href="Database-Redis.html#v:sort">sort</a></code> command.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SortOpts" class="def">SortOpts</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:sortBy" class="def">sortBy</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:sortLimit" class="def">sortLimit</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:sortGet" class="def">sortGet</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</dt><dd class="doc empty"> </dd><dt class="src"><a name="v:sortOrder" class="def">sortOrder</a> :: <a href="Database-Redis.html#t:SortOrder">SortOrder</a></dt><dd class="doc empty"> </dd><dt class="src"><a name="v:sortAlpha" class="def">sortAlpha</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:SortOpts" class="caption collapser" onclick="toggleSection('i:SortOpts')">Instances</p><div id="section.i:SortOpts" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:SortOpts">SortOpts</a></span> <a href="src/Database-Redis-ManualCommands.html#line-217" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:SortOpts">SortOpts</a></span> <a href="src/Database-Redis-ManualCommands.html#line-217" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:defaultSortOpts" class="def">defaultSortOpts</a> :: <a href="Database-Redis.html#t:SortOpts">SortOpts</a> <a href="src/Database-Redis-ManualCommands.html#defaultSortOpts" class="link">Source</a></p><div class="doc"><p>Redis default <code><a href="Database-Redis.html#t:SortOpts">SortOpts</a></code>. Equivalent to omitting all optional parameters.</p><pre>SortOpts
{ sortBy = Nothing -- omit the BY option
, sortLimit = (0,-1) -- return entire collection
, sortGet = [] -- omit the GET option
, sortOrder = Asc -- sort in ascending order
, sortAlpha = False -- sort numerically, not lexicographically
}
</pre></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SortOrder" class="def">SortOrder</a> <a href="src/Database-Redis-ManualCommands.html#SortOrder" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Asc" class="def">Asc</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Desc" class="def">Desc</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:SortOrder" class="caption collapser" onclick="toggleSection('i:SortOrder')">Instances</p><div id="section.i:SortOrder" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:SortOrder">SortOrder</a></span> <a href="src/Database-Redis-ManualCommands.html#line-240" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:SortOrder">SortOrder</a></span> <a href="src/Database-Redis-ManualCommands.html#line-240" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:sort" class="def">sort</a> <a href="src/Database-Redis-ManualCommands.html#sort" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:SortOpts">SortOpts</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Sort the elements in a list, set or sorted set (<a href="http://redis.io/commands/sort">http://redis.io/commands/sort</a>). The Redis command <code>SORT</code> is split up into <code><a href="Database-Redis.html#v:sort">sort</a></code>, <code><a href="Database-Redis.html#v:sortStore">sortStore</a></code>.</p></div><div class="top"><p class="src"><a name="v:sortStore" class="def">sortStore</a> <a href="src/Database-Redis-ManualCommands.html#sortStore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:SortOpts">SortOpts</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Sort the elements in a list, set or sorted set (<a href="http://redis.io/commands/sort">http://redis.io/commands/sort</a>). The Redis command <code>SORT</code> is split up into <code><a href="Database-Redis.html#v:sort">sort</a></code>, <code><a href="Database-Redis.html#v:sortStore">sortStore</a></code>.</p></div><div class="top"><p class="src"><a name="v:ttl" class="def">ttl</a> <a href="src/Database-Redis-Commands.html#ttl" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the time to live for a key (<a href="http://redis.io/commands/ttl">http://redis.io/commands/ttl</a>).</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:RedisType" class="def">RedisType</a> <a href="src/Database-Redis-Types.html#RedisType" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:None" class="def">None</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:String" class="def">String</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Hash" class="def">Hash</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:List" class="def">List</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Set" class="def">Set</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:ZSet" class="def">ZSet</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:RedisType" class="caption collapser" onclick="toggleSection('i:RedisType')">Instances</p><div id="section.i:RedisType" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:RedisType">RedisType</a></span> <a href="src/Database-Redis-Types.html#line-42" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:RedisType">RedisType</a></span> <a href="src/Database-Redis-Types.html#line-42" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:RedisType">RedisType</a></span> <a href="src/Database-Redis-Types.html#line-67" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:getType" class="def">getType</a> <a href="src/Database-Redis-ManualCommands.html#getType" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:RedisType">RedisType</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Determine the type stored at key (<a href="http://redis.io/commands/type">http://redis.io/commands/type</a>).</p></div><h2 id="g:11">Hashes</h2><div class="top"><p class="src"><a name="v:hdel" class="def">hdel</a> <a href="src/Database-Redis-Commands.html#hdel" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Delete one or more hash fields (<a href="http://redis.io/commands/hdel">http://redis.io/commands/hdel</a>).</p></div><div class="top"><p class="src"><a name="v:hexists" class="def">hexists</a> <a href="src/Database-Redis-Commands.html#hexists" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Determine if a hash field exists (<a href="http://redis.io/commands/hexists">http://redis.io/commands/hexists</a>).</p></div><div class="top"><p class="src"><a name="v:hget" class="def">hget</a> <a href="src/Database-Redis-Commands.html#hget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the value of a hash field (<a href="http://redis.io/commands/hget">http://redis.io/commands/hget</a>).</p></div><div class="top"><p class="src"><a name="v:hgetall" class="def">hgetall</a> <a href="src/Database-Redis-Commands.html#hgetall" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get all the fields and values in a hash (<a href="http://redis.io/commands/hgetall">http://redis.io/commands/hgetall</a>).</p></div><div class="top"><p class="src"><a name="v:hincrby" class="def">hincrby</a> <a href="src/Database-Redis-Commands.html#hincrby" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>increment</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Increment the integer value of a hash field by the given number (<a href="http://redis.io/commands/hincrby">http://redis.io/commands/hincrby</a>).</p></div><div class="top"><p class="src"><a name="v:hincrbyfloat" class="def">hincrbyfloat</a> <a href="src/Database-Redis-Commands.html#hincrbyfloat" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>increment</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Increment the float value of a hash field by the given amount (<a href="http://redis.io/commands/hincrbyfloat">http://redis.io/commands/hincrbyfloat</a>).</p></div><div class="top"><p class="src"><a name="v:hkeys" class="def">hkeys</a> <a href="src/Database-Redis-Commands.html#hkeys" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get all the fields in a hash (<a href="http://redis.io/commands/hkeys">http://redis.io/commands/hkeys</a>).</p></div><div class="top"><p class="src"><a name="v:hlen" class="def">hlen</a> <a href="src/Database-Redis-Commands.html#hlen" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the number of fields in a hash (<a href="http://redis.io/commands/hlen">http://redis.io/commands/hlen</a>).</p></div><div class="top"><p class="src"><a name="v:hmget" class="def">hmget</a> <a href="src/Database-Redis-Commands.html#hmget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the values of all the given hash fields (<a href="http://redis.io/commands/hmget">http://redis.io/commands/hmget</a>).</p></div><div class="top"><p class="src"><a name="v:hmset" class="def">hmset</a> <a href="src/Database-Redis-Commands.html#hmset" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)]</td><td class="doc"><p>fieldValue</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set multiple hash fields to multiple values (<a href="http://redis.io/commands/hmset">http://redis.io/commands/hmset</a>).</p></div><div class="top"><p class="src"><a name="v:hset" class="def">hset</a> <a href="src/Database-Redis-Commands.html#hset" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the string value of a hash field (<a href="http://redis.io/commands/hset">http://redis.io/commands/hset</a>).</p></div><div class="top"><p class="src"><a name="v:hsetnx" class="def">hsetnx</a> <a href="src/Database-Redis-Commands.html#hsetnx" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>field</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the value of a hash field, only if the field does not exist (<a href="http://redis.io/commands/hsetnx">http://redis.io/commands/hsetnx</a>).</p></div><div class="top"><p class="src"><a name="v:hvals" class="def">hvals</a> <a href="src/Database-Redis-Commands.html#hvals" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get all the values in a hash (<a href="http://redis.io/commands/hvals">http://redis.io/commands/hvals</a>).</p></div><h2 id="g:12">Lists</h2><div class="top"><p class="src"><a name="v:blpop" class="def">blpop</a> <a href="src/Database-Redis-Commands.html#blpop" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>timeout</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove and get the first element in a list, or block until one is available (<a href="http://redis.io/commands/blpop">http://redis.io/commands/blpop</a>).</p></div><div class="top"><p class="src"><a name="v:brpop" class="def">brpop</a> <a href="src/Database-Redis-Commands.html#brpop" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>timeout</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove and get the last element in a list, or block until one is available (<a href="http://redis.io/commands/brpop">http://redis.io/commands/brpop</a>).</p></div><div class="top"><p class="src"><a name="v:brpoplpush" class="def">brpoplpush</a> <a href="src/Database-Redis-Commands.html#brpoplpush" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>source</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>timeout</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Pop a value from a list, push it to another list and return it; or block until one is available (<a href="http://redis.io/commands/brpoplpush">http://redis.io/commands/brpoplpush</a>).</p></div><div class="top"><p class="src"><a name="v:lindex" class="def">lindex</a> <a href="src/Database-Redis-Commands.html#lindex" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>index</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get an element from a list by its index (<a href="http://redis.io/commands/lindex">http://redis.io/commands/lindex</a>).</p></div><div class="top"><p class="src"><a name="v:linsertBefore" class="def">linsertBefore</a> <a href="src/Database-Redis-ManualCommands.html#linsertBefore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>pivot</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Insert an element before or after another element in a list (<a href="http://redis.io/commands/linsert">http://redis.io/commands/linsert</a>). The Redis command <code>LINSERT</code> is split up into <code><a href="Database-Redis.html#v:linsertBefore">linsertBefore</a></code>, <code><a href="Database-Redis.html#v:linsertAfter">linsertAfter</a></code>.</p></div><div class="top"><p class="src"><a name="v:linsertAfter" class="def">linsertAfter</a> <a href="src/Database-Redis-ManualCommands.html#linsertAfter" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>pivot</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Insert an element before or after another element in a list (<a href="http://redis.io/commands/linsert">http://redis.io/commands/linsert</a>). The Redis command <code>LINSERT</code> is split up into <code><a href="Database-Redis.html#v:linsertBefore">linsertBefore</a></code>, <code><a href="Database-Redis.html#v:linsertAfter">linsertAfter</a></code>.</p></div><div class="top"><p class="src"><a name="v:llen" class="def">llen</a> <a href="src/Database-Redis-Commands.html#llen" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the length of a list (<a href="http://redis.io/commands/llen">http://redis.io/commands/llen</a>).</p></div><div class="top"><p class="src"><a name="v:lpop" class="def">lpop</a> <a href="src/Database-Redis-Commands.html#lpop" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove and get the first element in a list (<a href="http://redis.io/commands/lpop">http://redis.io/commands/lpop</a>).</p></div><div class="top"><p class="src"><a name="v:lpush" class="def">lpush</a> <a href="src/Database-Redis-Commands.html#lpush" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Prepend one or multiple values to a list (<a href="http://redis.io/commands/lpush">http://redis.io/commands/lpush</a>).</p></div><div class="top"><p class="src"><a name="v:lpushx" class="def">lpushx</a> <a href="src/Database-Redis-Commands.html#lpushx" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Prepend a value to a list, only if the list exists (<a href="http://redis.io/commands/lpushx">http://redis.io/commands/lpushx</a>).</p></div><div class="top"><p class="src"><a name="v:lrange" class="def">lrange</a> <a href="src/Database-Redis-Commands.html#lrange" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>stop</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get a range of elements from a list (<a href="http://redis.io/commands/lrange">http://redis.io/commands/lrange</a>).</p></div><div class="top"><p class="src"><a name="v:lrem" class="def">lrem</a> <a href="src/Database-Redis-Commands.html#lrem" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>count</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove elements from a list (<a href="http://redis.io/commands/lrem">http://redis.io/commands/lrem</a>).</p></div><div class="top"><p class="src"><a name="v:lset" class="def">lset</a> <a href="src/Database-Redis-Commands.html#lset" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>index</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the value of an element in a list by its index (<a href="http://redis.io/commands/lset">http://redis.io/commands/lset</a>).</p></div><div class="top"><p class="src"><a name="v:ltrim" class="def">ltrim</a> <a href="src/Database-Redis-Commands.html#ltrim" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>stop</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Trim a list to the specified range (<a href="http://redis.io/commands/ltrim">http://redis.io/commands/ltrim</a>).</p></div><div class="top"><p class="src"><a name="v:rpop" class="def">rpop</a> <a href="src/Database-Redis-Commands.html#rpop" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove and get the last element in a list (<a href="http://redis.io/commands/rpop">http://redis.io/commands/rpop</a>).</p></div><div class="top"><p class="src"><a name="v:rpoplpush" class="def">rpoplpush</a> <a href="src/Database-Redis-Commands.html#rpoplpush" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>source</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove the last element in a list, append it to another list and return it (<a href="http://redis.io/commands/rpoplpush">http://redis.io/commands/rpoplpush</a>).</p></div><div class="top"><p class="src"><a name="v:rpush" class="def">rpush</a> <a href="src/Database-Redis-Commands.html#rpush" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Append one or multiple values to a list (<a href="http://redis.io/commands/rpush">http://redis.io/commands/rpush</a>).</p></div><div class="top"><p class="src"><a name="v:rpushx" class="def">rpushx</a> <a href="src/Database-Redis-Commands.html#rpushx" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Append a value to a list, only if the list exists (<a href="http://redis.io/commands/rpushx">http://redis.io/commands/rpushx</a>).</p></div><h2 id="g:13">Scripting</h2><div class="top"><p class="src"><a name="v:eval" class="def">eval</a> <a href="src/Database-Redis-ManualCommands.html#eval" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>script</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>keys</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>args</p></td></tr><tr><td class="src">-> m (f a)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Execute a Lua script server side (<a href="http://redis.io/commands/eval">http://redis.io/commands/eval</a>).</p></div><div class="top"><p class="src"><a name="v:evalsha" class="def">evalsha</a> <a href="src/Database-Redis-ManualCommands.html#evalsha" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>script</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>keys</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>args</p></td></tr><tr><td class="src">-> m (f a)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Execute a Lua script server side (<a href="http://redis.io/commands/evalsha">http://redis.io/commands/evalsha</a>).</p></div><div class="top"><p class="src"><a name="v:scriptExists" class="def">scriptExists</a> <a href="src/Database-Redis-Commands.html#scriptExists" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>script</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Check existence of scripts in the script cache. (<a href="http://redis.io/commands/script-exists">http://redis.io/commands/script-exists</a>).</p></div><div class="top"><p class="src"><a name="v:scriptFlush" class="def">scriptFlush</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#scriptFlush" class="link">Source</a></p></div><div class="doc"><p>Remove all the scripts from the script cache. (<a href="http://redis.io/commands/script-flush">http://redis.io/commands/script-flush</a>).</p></div><div class="top"><p class="src"><a name="v:scriptKill" class="def">scriptKill</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#scriptKill" class="link">Source</a></p></div><div class="doc"><p>Kill the script currently in execution. (<a href="http://redis.io/commands/script-kill">http://redis.io/commands/script-kill</a>).</p></div><div class="top"><p class="src"><a name="v:scriptLoad" class="def">scriptLoad</a> <a href="src/Database-Redis-Commands.html#scriptLoad" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>script</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Load the specified Lua script into the script cache. (<a href="http://redis.io/commands/script-load">http://redis.io/commands/script-load</a>).</p></div><h2 id="g:14">Server</h2><div class="top"><p class="src"><a name="v:bgrewriteaof" class="def">bgrewriteaof</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#bgrewriteaof" class="link">Source</a></p></div><div class="doc"><p>Asynchronously rewrite the append-only file (<a href="http://redis.io/commands/bgrewriteaof">http://redis.io/commands/bgrewriteaof</a>).</p></div><div class="top"><p class="src"><a name="v:bgsave" class="def">bgsave</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#bgsave" class="link">Source</a></p></div><div class="doc"><p>Asynchronously save the dataset to disk (<a href="http://redis.io/commands/bgsave">http://redis.io/commands/bgsave</a>).</p></div><div class="top"><p class="src"><a name="v:configGet" class="def">configGet</a> <a href="src/Database-Redis-Commands.html#configGet" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>parameter</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the value of a configuration parameter (<a href="http://redis.io/commands/config-get">http://redis.io/commands/config-get</a>).</p></div><div class="top"><p class="src"><a name="v:configResetstat" class="def">configResetstat</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#configResetstat" class="link">Source</a></p></div><div class="doc"><p>Reset the stats returned by INFO (<a href="http://redis.io/commands/config-resetstat">http://redis.io/commands/config-resetstat</a>).</p></div><div class="top"><p class="src"><a name="v:configSet" class="def">configSet</a> <a href="src/Database-Redis-Commands.html#configSet" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>parameter</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set a configuration parameter to the given value (<a href="http://redis.io/commands/config-set">http://redis.io/commands/config-set</a>).</p></div><div class="top"><p class="src"><a name="v:dbsize" class="def">dbsize</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>) <a href="src/Database-Redis-Commands.html#dbsize" class="link">Source</a></p></div><div class="doc"><p>Return the number of keys in the selected database (<a href="http://redis.io/commands/dbsize">http://redis.io/commands/dbsize</a>).</p></div><div class="top"><p class="src"><a name="v:debugObject" class="def">debugObject</a> <a href="src/Database-Redis-Commands.html#debugObject" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get debugging information about a key (<a href="http://redis.io/commands/debug-object">http://redis.io/commands/debug-object</a>).</p></div><div class="top"><p class="src"><a name="v:flushall" class="def">flushall</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#flushall" class="link">Source</a></p></div><div class="doc"><p>Remove all keys from all databases (<a href="http://redis.io/commands/flushall">http://redis.io/commands/flushall</a>).</p></div><div class="top"><p class="src"><a name="v:flushdb" class="def">flushdb</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#flushdb" class="link">Source</a></p></div><div class="doc"><p>Remove all keys from the current database (<a href="http://redis.io/commands/flushdb">http://redis.io/commands/flushdb</a>).</p></div><div class="top"><p class="src"><a name="v:info" class="def">info</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>) <a href="src/Database-Redis-Commands.html#info" class="link">Source</a></p></div><div class="doc"><p>Get information and statistics about the server (<a href="http://redis.io/commands/info">http://redis.io/commands/info</a>).</p></div><div class="top"><p class="src"><a name="v:lastsave" class="def">lastsave</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>) <a href="src/Database-Redis-Commands.html#lastsave" class="link">Source</a></p></div><div class="doc"><p>Get the UNIX time stamp of the last successful save to disk (<a href="http://redis.io/commands/lastsave">http://redis.io/commands/lastsave</a>).</p></div><div class="top"><p class="src"><a name="v:save" class="def">save</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Commands.html#save" class="link">Source</a></p></div><div class="doc"><p>Synchronously save the dataset to disk (<a href="http://redis.io/commands/save">http://redis.io/commands/save</a>).</p></div><div class="top"><p class="src"><a name="v:slaveof" class="def">slaveof</a> <a href="src/Database-Redis-Commands.html#slaveof" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>host</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>port</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Make the server a slave of another instance, or promote it as master (<a href="http://redis.io/commands/slaveof">http://redis.io/commands/slaveof</a>).</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Slowlog" class="def">Slowlog</a> <a href="src/Database-Redis-ManualCommands.html#Slowlog" class="link">Source</a></p><div class="doc"><p>A single entry from the slowlog.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Slowlog" class="def">Slowlog</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:slowlogId" class="def">slowlogId</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>A unique progressive identifier for every slow log entry.</p></dd><dt class="src"><a name="v:slowlogTimestamp" class="def">slowlogTimestamp</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>The unix timestamp at which the logged command was processed.</p></dd><dt class="src"><a name="v:slowlogMicros" class="def">slowlogMicros</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>The amount of time needed for its execution, in microseconds.</p></dd><dt class="src"><a name="v:slowlogCmd" class="def">slowlogCmd</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</dt><dd class="doc"><p>The command and it's arguments.</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Slowlog" class="caption collapser" onclick="toggleSection('i:Slowlog')">Instances</p><div id="section.i:Slowlog" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:Slowlog">Slowlog</a></span> <a href="src/Database-Redis-ManualCommands.html#line-64" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:Slowlog">Slowlog</a></span> <a href="src/Database-Redis-ManualCommands.html#line-64" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:Slowlog">Slowlog</a></span> <a href="src/Database-Redis-ManualCommands.html#line-66" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:slowlogGet" class="def">slowlogGet</a> <a href="src/Database-Redis-ManualCommands.html#slowlogGet" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>cnt</p></td></tr><tr><td class="src">-> m (f [<a href="Database-Redis.html#t:Slowlog">Slowlog</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Manages the Redis slow queries log (<a href="http://redis.io/commands/slowlog">http://redis.io/commands/slowlog</a>). The Redis command <code>SLOWLOG</code> is split up into <code><a href="Database-Redis.html#v:slowlogGet">slowlogGet</a></code>, <code><a href="Database-Redis.html#v:slowlogLen">slowlogLen</a></code>, <code><a href="Database-Redis.html#v:slowlogReset">slowlogReset</a></code>.</p></div><div class="top"><p class="src"><a name="v:slowlogLen" class="def">slowlogLen</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>) <a href="src/Database-Redis-ManualCommands.html#slowlogLen" class="link">Source</a></p></div><div class="doc"><p>Manages the Redis slow queries log (<a href="http://redis.io/commands/slowlog">http://redis.io/commands/slowlog</a>). The Redis command <code>SLOWLOG</code> is split up into <code><a href="Database-Redis.html#v:slowlogGet">slowlogGet</a></code>, <code><a href="Database-Redis.html#v:slowlogLen">slowlogLen</a></code>, <code><a href="Database-Redis.html#v:slowlogReset">slowlogReset</a></code>.</p></div><div class="top"><p class="src"><a name="v:slowlogReset" class="def">slowlogReset</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-ManualCommands.html#slowlogReset" class="link">Source</a></p></div><div class="doc"><p>Manages the Redis slow queries log (<a href="http://redis.io/commands/slowlog">http://redis.io/commands/slowlog</a>). The Redis command <code>SLOWLOG</code> is split up into <code><a href="Database-Redis.html#v:slowlogGet">slowlogGet</a></code>, <code><a href="Database-Redis.html#v:slowlogLen">slowlogLen</a></code>, <code><a href="Database-Redis.html#v:slowlogReset">slowlogReset</a></code>.</p></div><div class="top"><p class="src"><a name="v:time" class="def">time</a> :: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f => m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)) <a href="src/Database-Redis-Commands.html#time" class="link">Source</a></p></div><div class="doc"><p>Return the current server time (<a href="http://redis.io/commands/time">http://redis.io/commands/time</a>).</p></div><h2 id="g:15">Sets</h2><div class="top"><p class="src"><a name="v:sadd" class="def">sadd</a> <a href="src/Database-Redis-Commands.html#sadd" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Add one or more members to a set (<a href="http://redis.io/commands/sadd">http://redis.io/commands/sadd</a>).</p></div><div class="top"><p class="src"><a name="v:scard" class="def">scard</a> <a href="src/Database-Redis-Commands.html#scard" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the number of members in a set (<a href="http://redis.io/commands/scard">http://redis.io/commands/scard</a>).</p></div><div class="top"><p class="src"><a name="v:sdiff" class="def">sdiff</a> <a href="src/Database-Redis-Commands.html#sdiff" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Subtract multiple sets (<a href="http://redis.io/commands/sdiff">http://redis.io/commands/sdiff</a>).</p></div><div class="top"><p class="src"><a name="v:sdiffstore" class="def">sdiffstore</a> <a href="src/Database-Redis-Commands.html#sdiffstore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Subtract multiple sets and store the resulting set in a key (<a href="http://redis.io/commands/sdiffstore">http://redis.io/commands/sdiffstore</a>).</p></div><div class="top"><p class="src"><a name="v:sinter" class="def">sinter</a> <a href="src/Database-Redis-Commands.html#sinter" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Intersect multiple sets (<a href="http://redis.io/commands/sinter">http://redis.io/commands/sinter</a>).</p></div><div class="top"><p class="src"><a name="v:sinterstore" class="def">sinterstore</a> <a href="src/Database-Redis-Commands.html#sinterstore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Intersect multiple sets and store the resulting set in a key (<a href="http://redis.io/commands/sinterstore">http://redis.io/commands/sinterstore</a>).</p></div><div class="top"><p class="src"><a name="v:sismember" class="def">sismember</a> <a href="src/Database-Redis-Commands.html#sismember" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Determine if a given value is a member of a set (<a href="http://redis.io/commands/sismember">http://redis.io/commands/sismember</a>).</p></div><div class="top"><p class="src"><a name="v:smembers" class="def">smembers</a> <a href="src/Database-Redis-Commands.html#smembers" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get all the members in a set (<a href="http://redis.io/commands/smembers">http://redis.io/commands/smembers</a>).</p></div><div class="top"><p class="src"><a name="v:smove" class="def">smove</a> <a href="src/Database-Redis-Commands.html#smove" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>source</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Move a member from one set to another (<a href="http://redis.io/commands/smove">http://redis.io/commands/smove</a>).</p></div><div class="top"><p class="src"><a name="v:spop" class="def">spop</a> <a href="src/Database-Redis-Commands.html#spop" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove and return a random member from a set (<a href="http://redis.io/commands/spop">http://redis.io/commands/spop</a>).</p></div><div class="top"><p class="src"><a name="v:srandmember" class="def">srandmember</a> <a href="src/Database-Redis-Commands.html#srandmember" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get a random member from a set (<a href="http://redis.io/commands/srandmember">http://redis.io/commands/srandmember</a>).</p></div><div class="top"><p class="src"><a name="v:srem" class="def">srem</a> <a href="src/Database-Redis-Commands.html#srem" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove one or more members from a set (<a href="http://redis.io/commands/srem">http://redis.io/commands/srem</a>).</p></div><div class="top"><p class="src"><a name="v:sunion" class="def">sunion</a> <a href="src/Database-Redis-Commands.html#sunion" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Add multiple sets (<a href="http://redis.io/commands/sunion">http://redis.io/commands/sunion</a>).</p></div><div class="top"><p class="src"><a name="v:sunionstore" class="def">sunionstore</a> <a href="src/Database-Redis-Commands.html#sunionstore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Add multiple sets and store the resulting set in a key (<a href="http://redis.io/commands/sunionstore">http://redis.io/commands/sunionstore</a>).</p></div><h2 id="g:16">Sorted Sets</h2><div class="top"><p class="src"><a name="v:zadd" class="def">zadd</a> <a href="src/Database-Redis-Commands.html#zadd" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)]</td><td class="doc"><p>scoreMember</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Add one or more members to a sorted set, or update its score if it already exists (<a href="http://redis.io/commands/zadd">http://redis.io/commands/zadd</a>).</p></div><div class="top"><p class="src"><a name="v:zcard" class="def">zcard</a> <a href="src/Database-Redis-Commands.html#zcard" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the number of members in a sorted set (<a href="http://redis.io/commands/zcard">http://redis.io/commands/zcard</a>).</p></div><div class="top"><p class="src"><a name="v:zcount" class="def">zcount</a> <a href="src/Database-Redis-Commands.html#zcount" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Count the members in a sorted set with scores within the given values (<a href="http://redis.io/commands/zcount">http://redis.io/commands/zcount</a>).</p></div><div class="top"><p class="src"><a name="v:zincrby" class="def">zincrby</a> <a href="src/Database-Redis-Commands.html#zincrby" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>increment</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Increment the score of a member in a sorted set (<a href="http://redis.io/commands/zincrby">http://redis.io/commands/zincrby</a>).</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Aggregate" class="def">Aggregate</a> <a href="src/Database-Redis-ManualCommands.html#Aggregate" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Sum" class="def">Sum</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Min" class="def">Min</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Max" class="def">Max</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Aggregate" class="caption collapser" onclick="toggleSection('i:Aggregate')">Instances</p><div id="section.i:Aggregate" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:Aggregate">Aggregate</a></span> <a href="src/Database-Redis-ManualCommands.html#line-274" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:Aggregate">Aggregate</a></span> <a href="src/Database-Redis-ManualCommands.html#line-274" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:zinterstore" class="def">zinterstore</a> <a href="src/Database-Redis-ManualCommands.html#zinterstore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>keys</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:Aggregate">Aggregate</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Intersect multiple sorted sets and store the resulting sorted set in a new key (<a href="http://redis.io/commands/zinterstore">http://redis.io/commands/zinterstore</a>). The Redis command <code>ZINTERSTORE</code> is split up into <code><a href="Database-Redis.html#v:zinterstore">zinterstore</a></code>, <code><a href="Database-Redis.html#v:zinterstoreWeights">zinterstoreWeights</a></code>.</p></div><div class="top"><p class="src"><a name="v:zinterstoreWeights" class="def">zinterstoreWeights</a> <a href="src/Database-Redis-ManualCommands.html#zinterstoreWeights" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)]</td><td class="doc"><p>weighted keys</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:Aggregate">Aggregate</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Intersect multiple sorted sets and store the resulting sorted set in a new key (<a href="http://redis.io/commands/zinterstore">http://redis.io/commands/zinterstore</a>). The Redis command <code>ZINTERSTORE</code> is split up into <code><a href="Database-Redis.html#v:zinterstore">zinterstore</a></code>, <code><a href="Database-Redis.html#v:zinterstoreWeights">zinterstoreWeights</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrange" class="def">zrange</a> <a href="src/Database-Redis-ManualCommands.html#zrange" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>stop</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by index (<a href="http://redis.io/commands/zrange">http://redis.io/commands/zrange</a>). The Redis command <code>ZRANGE</code> is split up into <code><a href="Database-Redis.html#v:zrange">zrange</a></code>, <code><a href="Database-Redis.html#v:zrangeWithscores">zrangeWithscores</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrangeWithscores" class="def">zrangeWithscores</a> <a href="src/Database-Redis-ManualCommands.html#zrangeWithscores" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>stop</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by index (<a href="http://redis.io/commands/zrange">http://redis.io/commands/zrange</a>). The Redis command <code>ZRANGE</code> is split up into <code><a href="Database-Redis.html#v:zrange">zrange</a></code>, <code><a href="Database-Redis.html#v:zrangeWithscores">zrangeWithscores</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrangebyscore" class="def">zrangebyscore</a> <a href="src/Database-Redis-ManualCommands.html#zrangebyscore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score (<a href="http://redis.io/commands/zrangebyscore">http://redis.io/commands/zrangebyscore</a>). The Redis command <code>ZRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrangebyscore">zrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscores">zrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreLimit">zrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscoresLimit">zrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrangebyscoreWithscores" class="def">zrangebyscoreWithscores</a> <a href="src/Database-Redis-ManualCommands.html#zrangebyscoreWithscores" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score (<a href="http://redis.io/commands/zrangebyscore">http://redis.io/commands/zrangebyscore</a>). The Redis command <code>ZRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrangebyscore">zrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscores">zrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreLimit">zrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscoresLimit">zrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrangebyscoreLimit" class="def">zrangebyscoreLimit</a> <a href="src/Database-Redis-ManualCommands.html#zrangebyscoreLimit" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>offset</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>count</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score (<a href="http://redis.io/commands/zrangebyscore">http://redis.io/commands/zrangebyscore</a>). The Redis command <code>ZRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrangebyscore">zrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscores">zrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreLimit">zrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscoresLimit">zrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrangebyscoreWithscoresLimit" class="def">zrangebyscoreWithscoresLimit</a> <a href="src/Database-Redis-ManualCommands.html#zrangebyscoreWithscoresLimit" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>offset</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>count</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score (<a href="http://redis.io/commands/zrangebyscore">http://redis.io/commands/zrangebyscore</a>). The Redis command <code>ZRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrangebyscore">zrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscores">zrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreLimit">zrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrangebyscoreWithscoresLimit">zrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrank" class="def">zrank</a> <a href="src/Database-Redis-Commands.html#zrank" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Determine the index of a member in a sorted set (<a href="http://redis.io/commands/zrank">http://redis.io/commands/zrank</a>).</p></div><div class="top"><p class="src"><a name="v:zrem" class="def">zrem</a> <a href="src/Database-Redis-Commands.html#zrem" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove one or more members from a sorted set (<a href="http://redis.io/commands/zrem">http://redis.io/commands/zrem</a>).</p></div><div class="top"><p class="src"><a name="v:zremrangebyrank" class="def">zremrangebyrank</a> <a href="src/Database-Redis-Commands.html#zremrangebyrank" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>stop</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove all members in a sorted set within the given indexes (<a href="http://redis.io/commands/zremrangebyrank">http://redis.io/commands/zremrangebyrank</a>).</p></div><div class="top"><p class="src"><a name="v:zremrangebyscore" class="def">zremrangebyscore</a> <a href="src/Database-Redis-Commands.html#zremrangebyscore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Remove all members in a sorted set within the given scores (<a href="http://redis.io/commands/zremrangebyscore">http://redis.io/commands/zremrangebyscore</a>).</p></div><div class="top"><p class="src"><a name="v:zrevrange" class="def">zrevrange</a> <a href="src/Database-Redis-ManualCommands.html#zrevrange" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>stop</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by index, with scores ordered from high to low (<a href="http://redis.io/commands/zrevrange">http://redis.io/commands/zrevrange</a>). The Redis command <code>ZREVRANGE</code> is split up into <code><a href="Database-Redis.html#v:zrevrange">zrevrange</a></code>, <code><a href="Database-Redis.html#v:zrevrangeWithscores">zrevrangeWithscores</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrevrangeWithscores" class="def">zrevrangeWithscores</a> <a href="src/Database-Redis-ManualCommands.html#zrevrangeWithscores" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>stop</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by index, with scores ordered from high to low (<a href="http://redis.io/commands/zrevrange">http://redis.io/commands/zrevrange</a>). The Redis command <code>ZREVRANGE</code> is split up into <code><a href="Database-Redis.html#v:zrevrange">zrevrange</a></code>, <code><a href="Database-Redis.html#v:zrevrangeWithscores">zrevrangeWithscores</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrevrangebyscore" class="def">zrevrangebyscore</a> <a href="src/Database-Redis-ManualCommands.html#zrevrangebyscore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score, with scores ordered from high to low (<a href="http://redis.io/commands/zrevrangebyscore">http://redis.io/commands/zrevrangebyscore</a>). The Redis command <code>ZREVRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrevrangebyscore">zrevrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscores">zrevrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreLimit">zrevrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscoresLimit">zrevrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrevrangebyscoreWithscores" class="def">zrevrangebyscoreWithscores</a> <a href="src/Database-Redis-ManualCommands.html#zrevrangebyscoreWithscores" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score, with scores ordered from high to low (<a href="http://redis.io/commands/zrevrangebyscore">http://redis.io/commands/zrevrangebyscore</a>). The Redis command <code>ZREVRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrevrangebyscore">zrevrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscores">zrevrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreLimit">zrevrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscoresLimit">zrevrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrevrangebyscoreLimit" class="def">zrevrangebyscoreLimit</a> <a href="src/Database-Redis-ManualCommands.html#zrevrangebyscoreLimit" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>offset</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>count</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score, with scores ordered from high to low (<a href="http://redis.io/commands/zrevrangebyscore">http://redis.io/commands/zrevrangebyscore</a>). The Redis command <code>ZREVRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrevrangebyscore">zrevrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscores">zrevrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreLimit">zrevrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscoresLimit">zrevrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrevrangebyscoreWithscoresLimit" class="def">zrevrangebyscoreWithscoresLimit</a> <a href="src/Database-Redis-ManualCommands.html#zrevrangebyscoreWithscoresLimit" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>max</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>min</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>offset</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>count</p></td></tr><tr><td class="src">-> m (f [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Return a range of members in a sorted set, by score, with scores ordered from high to low (<a href="http://redis.io/commands/zrevrangebyscore">http://redis.io/commands/zrevrangebyscore</a>). The Redis command <code>ZREVRANGEBYSCORE</code> is split up into <code><a href="Database-Redis.html#v:zrevrangebyscore">zrevrangebyscore</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscores">zrevrangebyscoreWithscores</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreLimit">zrevrangebyscoreLimit</a></code>, <code><a href="Database-Redis.html#v:zrevrangebyscoreWithscoresLimit">zrevrangebyscoreWithscoresLimit</a></code>.</p></div><div class="top"><p class="src"><a name="v:zrevrank" class="def">zrevrank</a> <a href="src/Database-Redis-Commands.html#zrevrank" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Determine the index of a member in a sorted set, with scores ordered from high to low (<a href="http://redis.io/commands/zrevrank">http://redis.io/commands/zrevrank</a>).</p></div><div class="top"><p class="src"><a name="v:zscore" class="def">zscore</a> <a href="src/Database-Redis-Commands.html#zscore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>member</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the score associated with the given member in a sorted set (<a href="http://redis.io/commands/zscore">http://redis.io/commands/zscore</a>).</p></div><div class="top"><p class="src"><a name="v:zunionstore" class="def">zunionstore</a> <a href="src/Database-Redis-ManualCommands.html#zunionstore" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>keys</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:Aggregate">Aggregate</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Add multiple sorted sets and store the resulting sorted set in a new key (<a href="http://redis.io/commands/zunionstore">http://redis.io/commands/zunionstore</a>). The Redis command <code>ZUNIONSTORE</code> is split up into <code><a href="Database-Redis.html#v:zunionstore">zunionstore</a></code>, <code><a href="Database-Redis.html#v:zunionstoreWeights">zunionstoreWeights</a></code>.</p></div><div class="top"><p class="src"><a name="v:zunionstoreWeights" class="def">zunionstoreWeights</a> <a href="src/Database-Redis-ManualCommands.html#zunionstoreWeights" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destination</p></td></tr><tr><td class="src">-> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)]</td><td class="doc"><p>weighted keys</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:Aggregate">Aggregate</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Add multiple sorted sets and store the resulting sorted set in a new key (<a href="http://redis.io/commands/zunionstore">http://redis.io/commands/zunionstore</a>). The Redis command <code>ZUNIONSTORE</code> is split up into <code><a href="Database-Redis.html#v:zunionstore">zunionstore</a></code>, <code><a href="Database-Redis.html#v:zunionstoreWeights">zunionstoreWeights</a></code>.</p></div><h2 id="g:17">Strings</h2><div class="top"><p class="src"><a name="v:append" class="def">append</a> <a href="src/Database-Redis-Commands.html#append" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Append a value to a key (<a href="http://redis.io/commands/append">http://redis.io/commands/append</a>).</p></div><div class="top"><p class="src"><a name="v:bitcount" class="def">bitcount</a> <a href="src/Database-Redis-ManualCommands.html#bitcount" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Count set bits in a string (<a href="http://redis.io/commands/bitcount">http://redis.io/commands/bitcount</a>). The Redis command <code>BITCOUNT</code> is split up into <code><a href="Database-Redis.html#v:bitcount">bitcount</a></code>, <code><a href="Database-Redis.html#v:bitcountRange">bitcountRange</a></code>.</p></div><div class="top"><p class="src"><a name="v:bitcountRange" class="def">bitcountRange</a> <a href="src/Database-Redis-ManualCommands.html#bitcountRange" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>end</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Count set bits in a string (<a href="http://redis.io/commands/bitcount">http://redis.io/commands/bitcount</a>). The Redis command <code>BITCOUNT</code> is split up into <code><a href="Database-Redis.html#v:bitcount">bitcount</a></code>, <code><a href="Database-Redis.html#v:bitcountRange">bitcountRange</a></code>.</p></div><div class="top"><p class="src"><a name="v:bitopAnd" class="def">bitopAnd</a> <a href="src/Database-Redis-ManualCommands.html#bitopAnd" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destkey</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>srckeys</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Perform bitwise operations between strings (<a href="http://redis.io/commands/bitop">http://redis.io/commands/bitop</a>). The Redis command <code>BITOP</code> is split up into <code><a href="Database-Redis.html#v:bitopAnd">bitopAnd</a></code>, <code><a href="Database-Redis.html#v:bitopOr">bitopOr</a></code>, <code><a href="Database-Redis.html#v:bitopXor">bitopXor</a></code>, <code><a href="Database-Redis.html#v:bitopNot">bitopNot</a></code>.</p></div><div class="top"><p class="src"><a name="v:bitopOr" class="def">bitopOr</a> <a href="src/Database-Redis-ManualCommands.html#bitopOr" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destkey</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>srckeys</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Perform bitwise operations between strings (<a href="http://redis.io/commands/bitop">http://redis.io/commands/bitop</a>). The Redis command <code>BITOP</code> is split up into <code><a href="Database-Redis.html#v:bitopAnd">bitopAnd</a></code>, <code><a href="Database-Redis.html#v:bitopOr">bitopOr</a></code>, <code><a href="Database-Redis.html#v:bitopXor">bitopXor</a></code>, <code><a href="Database-Redis.html#v:bitopNot">bitopNot</a></code>.</p></div><div class="top"><p class="src"><a name="v:bitopXor" class="def">bitopXor</a> <a href="src/Database-Redis-ManualCommands.html#bitopXor" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destkey</p></td></tr><tr><td class="src">-> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>srckeys</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Perform bitwise operations between strings (<a href="http://redis.io/commands/bitop">http://redis.io/commands/bitop</a>). The Redis command <code>BITOP</code> is split up into <code><a href="Database-Redis.html#v:bitopAnd">bitopAnd</a></code>, <code><a href="Database-Redis.html#v:bitopOr">bitopOr</a></code>, <code><a href="Database-Redis.html#v:bitopXor">bitopXor</a></code>, <code><a href="Database-Redis.html#v:bitopNot">bitopNot</a></code>.</p></div><div class="top"><p class="src"><a name="v:bitopNot" class="def">bitopNot</a> <a href="src/Database-Redis-ManualCommands.html#bitopNot" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>destkey</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>srckey</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Perform bitwise operations between strings (<a href="http://redis.io/commands/bitop">http://redis.io/commands/bitop</a>). The Redis command <code>BITOP</code> is split up into <code><a href="Database-Redis.html#v:bitopAnd">bitopAnd</a></code>, <code><a href="Database-Redis.html#v:bitopOr">bitopOr</a></code>, <code><a href="Database-Redis.html#v:bitopXor">bitopXor</a></code>, <code><a href="Database-Redis.html#v:bitopNot">bitopNot</a></code>.</p></div><div class="top"><p class="src"><a name="v:decr" class="def">decr</a> <a href="src/Database-Redis-Commands.html#decr" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Decrement the integer value of a key by one (<a href="http://redis.io/commands/decr">http://redis.io/commands/decr</a>).</p></div><div class="top"><p class="src"><a name="v:decrby" class="def">decrby</a> <a href="src/Database-Redis-Commands.html#decrby" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>decrement</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Decrement the integer value of a key by the given number (<a href="http://redis.io/commands/decrby">http://redis.io/commands/decrby</a>).</p></div><div class="top"><p class="src"><a name="v:get" class="def">get</a> <a href="src/Database-Redis-Commands.html#get" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the value of a key (<a href="http://redis.io/commands/get">http://redis.io/commands/get</a>).</p></div><div class="top"><p class="src"><a name="v:getbit" class="def">getbit</a> <a href="src/Database-Redis-Commands.html#getbit" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>offset</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Returns the bit value at offset in the string value stored at key (<a href="http://redis.io/commands/getbit">http://redis.io/commands/getbit</a>).</p></div><div class="top"><p class="src"><a name="v:getrange" class="def">getrange</a> <a href="src/Database-Redis-Commands.html#getrange" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>start</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>end</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get a substring of the string stored at a key (<a href="http://redis.io/commands/getrange">http://redis.io/commands/getrange</a>).</p></div><div class="top"><p class="src"><a name="v:getset" class="def">getset</a> <a href="src/Database-Redis-Commands.html#getset" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>))</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the string value of a key and return its old value (<a href="http://redis.io/commands/getset">http://redis.io/commands/getset</a>).</p></div><div class="top"><p class="src"><a name="v:incr" class="def">incr</a> <a href="src/Database-Redis-Commands.html#incr" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Increment the integer value of a key by one (<a href="http://redis.io/commands/incr">http://redis.io/commands/incr</a>).</p></div><div class="top"><p class="src"><a name="v:incrby" class="def">incrby</a> <a href="src/Database-Redis-Commands.html#incrby" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>increment</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Increment the integer value of a key by the given amount (<a href="http://redis.io/commands/incrby">http://redis.io/commands/incrby</a>).</p></div><div class="top"><p class="src"><a name="v:incrbyfloat" class="def">incrbyfloat</a> <a href="src/Database-Redis-Commands.html#incrbyfloat" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>increment</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Increment the float value of a key by the given amount (<a href="http://redis.io/commands/incrbyfloat">http://redis.io/commands/incrbyfloat</a>).</p></div><div class="top"><p class="src"><a name="v:mget" class="def">mget</a> <a href="src/Database-Redis-Commands.html#mget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>])</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the values of all the given keys (<a href="http://redis.io/commands/mget">http://redis.io/commands/mget</a>).</p></div><div class="top"><p class="src"><a name="v:mset" class="def">mset</a> <a href="src/Database-Redis-Commands.html#mset" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)]</td><td class="doc"><p>keyValue</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set multiple keys to multiple values (<a href="http://redis.io/commands/mset">http://redis.io/commands/mset</a>).</p></div><div class="top"><p class="src"><a name="v:msetnx" class="def">msetnx</a> <a href="src/Database-Redis-Commands.html#msetnx" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)]</td><td class="doc"><p>keyValue</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set multiple keys to multiple values, only if none of the keys exist (<a href="http://redis.io/commands/msetnx">http://redis.io/commands/msetnx</a>).</p></div><div class="top"><p class="src"><a name="v:psetex" class="def">psetex</a> <a href="src/Database-Redis-Commands.html#psetex" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>milliseconds</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the value and expiration in milliseconds of a key (<a href="http://redis.io/commands/psetex">http://redis.io/commands/psetex</a>).</p></div><div class="top"><p class="src"><a name="v:set" class="def">set</a> <a href="src/Database-Redis-Commands.html#set" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the string value of a key (<a href="http://redis.io/commands/set">http://redis.io/commands/set</a>).</p></div><div class="top"><p class="src"><a name="v:setbit" class="def">setbit</a> <a href="src/Database-Redis-Commands.html#setbit" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>offset</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Sets or clears the bit at offset in the string value stored at key (<a href="http://redis.io/commands/setbit">http://redis.io/commands/setbit</a>).</p></div><div class="top"><p class="src"><a name="v:setex" class="def">setex</a> <a href="src/Database-Redis-Commands.html#setex" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>seconds</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the value and expiration of a key (<a href="http://redis.io/commands/setex">http://redis.io/commands/setex</a>).</p></div><div class="top"><p class="src"><a name="v:setnx" class="def">setnx</a> <a href="src/Database-Redis-Commands.html#setnx" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Set the value of a key, only if the key does not exist (<a href="http://redis.io/commands/setnx">http://redis.io/commands/setnx</a>).</p></div><div class="top"><p class="src"><a name="v:setrange" class="def">setrange</a> <a href="src/Database-Redis-Commands.html#setrange" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>offset</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>value</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Overwrite part of a string at key starting at the specified offset (<a href="http://redis.io/commands/setrange">http://redis.io/commands/setrange</a>).</p></div><div class="top"><p class="src"><a name="v:strlen" class="def">strlen</a> <a href="src/Database-Redis-Commands.html#strlen" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div></div><div class="doc"><p>Get the length of the value stored in a key (<a href="http://redis.io/commands/strlen">http://redis.io/commands/strlen</a>).</p></div><h1 id="g:18">Unimplemented Commands</h1><div class="doc"><p>These commands are not implemented, as of now. Library
users can implement these or other commands from
experimental Redis versions by using the <code><a href="Database-Redis.html#v:sendRequest">sendRequest</a></code>
function.</p><ul><li>MONITOR (<a href="http://redis.io/commands/monitor">http://redis.io/commands/monitor</a>)</li><li>SYNC (<a href="http://redis.io/commands/sync">http://redis.io/commands/sync</a>)</li><li>SHUTDOWN (<a href="http://redis.io/commands/shutdown">http://redis.io/commands/shutdown</a>)</li><li>DEBUG SEGFAULT (<a href="http://redis.io/commands/debug-segfault">http://redis.io/commands/debug-segfault</a>)</li></ul></div><h1 id="g:19">Transactions</h1><div class="top"><p class="src"><a name="v:watch" class="def">watch</a> <a href="src/Database-Redis-Transactions.html#watch" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>key</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> <a href="Database-Redis.html#t:Status">Status</a>)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Watch the given keys to determine execution of the MULTI/EXEC block
(<a href="http://redis.io/commands/watch">http://redis.io/commands/watch</a>).</p></div></div><div class="top"><p class="src"><a name="v:unwatch" class="def">unwatch</a> :: <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> <a href="Database-Redis.html#t:Status">Status</a>) <a href="src/Database-Redis-Transactions.html#unwatch" class="link">Source</a></p><div class="doc"><p>Forget about all watched keys (<a href="http://redis.io/commands/unwatch">http://redis.io/commands/unwatch</a>).</p></div></div><div class="top"><p class="src"><a name="v:multiExec" class="def">multiExec</a> :: <a href="Database-Redis.html#t:RedisTx">RedisTx</a> (<a href="Database-Redis.html#t:Queued">Queued</a> a) -> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="Database-Redis.html#t:TxResult">TxResult</a> a) <a href="src/Database-Redis-Transactions.html#multiExec" class="link">Source</a></p><div class="doc"><p>Run commands inside a transaction. For documentation on the semantics of
Redis transaction see <a href="http://redis.io/topics/transactions">http://redis.io/topics/transactions</a>.</p><p>Inside the transaction block, command functions return their result wrapped
in a <code><a href="Database-Redis.html#t:Queued">Queued</a></code>. The <code><a href="Database-Redis.html#t:Queued">Queued</a></code> result is a proxy object for the actual
command's result, which will only be available after <code>EXEC</code>ing the
transaction.</p><p>Example usage (note how <code><a href="Database-Redis.html#t:Queued">Queued</a></code> 's <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a></code> instance is used to
combine the two individual results):</p><pre> runRedis conn $ do
set "hello" "hello"
set "world" "world"
helloworld <- <code><a href="Database-Redis.html#v:multiExec">multiExec</a></code> $ do
hello <- get "hello"
world <- get "world"
return $ (,) <$> hello <*> world
liftIO (print helloworld)
</pre></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Queued" class="def">Queued</a> a <a href="src/Database-Redis-Transactions.html#Queued" class="link">Source</a></p><div class="doc"><p>A <code><a href="Database-Redis.html#t:Queued">Queued</a></code> value represents the result of a command inside a transaction. It
is a proxy object for the <em>actual</em> result, which will only be available
after returning from a <code><a href="Database-Redis.html#v:multiExec">multiExec</a></code> transaction.</p><p><code><a href="Database-Redis.html#t:Queued">Queued</a></code> values are composable by utilizing the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a></code>, <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a></code> or
<code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a></code> interfaces.</p></div><div class="subs instances"><p id="control.i:Queued" class="caption collapser" onclick="toggleSection('i:Queued')">Instances</p><div id="section.i:Queued" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> <a href="Database-Redis.html#t:Queued">Queued</a></span> <a href="src/Database-Redis-Transactions.html#line-59" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> <a href="Database-Redis.html#t:Queued">Queued</a></span> <a href="src/Database-Redis-Transactions.html#line-49" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Database-Redis.html#t:Queued">Queued</a></span> <a href="src/Database-Redis-Transactions.html#line-52" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a> <a href="Database-Redis.html#t:Queued">Queued</a></span> <a href="src/Database-Redis-Transactions.html#line-34" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TxResult" class="def">TxResult</a> a <a href="src/Database-Redis-Transactions.html#TxResult" class="link">Source</a></p><div class="doc"><p>Result of a <code><a href="Database-Redis.html#v:multiExec">multiExec</a></code> transaction.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:TxSuccess" class="def">TxSuccess</a> a</td><td class="doc"><p>Transaction completed successfully. The wrapped value corresponds to
the <code><a href="Database-Redis.html#t:Queued">Queued</a></code> value returned from the <code><a href="Database-Redis.html#v:multiExec">multiExec</a></code> argument action.</p></td></tr><tr><td class="src"><a name="v:TxAborted" class="def">TxAborted</a></td><td class="doc"><p>Transaction aborted due to an earlier <code><a href="Database-Redis.html#v:watch">watch</a></code> command.</p></td></tr><tr><td class="src"><a name="v:TxError" class="def">TxError</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc"><p>At least one of the commands returned an <code><a href="Database-Redis.html#v:Error">Error</a></code> reply.</p></td></tr></table></div><div class="subs instances"><p id="control.i:TxResult" class="caption collapser" onclick="toggleSection('i:TxResult')">Instances</p><div id="section.i:TxResult" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Database-Redis.html#t:TxResult">TxResult</a> a)</span> <a href="src/Database-Redis-Transactions.html#line-75" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> (<a href="Database-Redis.html#t:TxResult">TxResult</a> a)</span> <a href="src/Database-Redis-Transactions.html#line-75" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:RedisTx" class="def">RedisTx</a> a <a href="src/Database-Redis-Transactions.html#RedisTx" class="link">Source</a></p><div class="doc"><p>Command-context inside of MULTI/EXEC transactions. Use <code><a href="Database-Redis.html#v:multiExec">multiExec</a></code> to run
actions of this type.</p><p>In the <code><a href="Database-Redis.html#t:RedisTx">RedisTx</a></code> context, all commands return a <code><a href="Database-Redis.html#t:Queued">Queued</a></code> value. It is a
proxy object for the <em>actual</em> result, which will only be available after
finishing the transaction.</p></div><div class="subs instances"><p id="control.i:RedisTx" class="caption collapser" onclick="toggleSection('i:RedisTx')">Instances</p><div id="section.i:RedisTx" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a></span> <a href="src/Database-Redis-Transactions.html#line-26" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Functor.html#t:Functor">Functor</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a></span> <a href="src/Database-Redis-Transactions.html#line-26" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Applicative.html#t:Applicative">Applicative</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a></span> <a href="src/Database-Redis-Transactions.html#line-26" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/transformers-0.4.2.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a></span> <a href="src/Database-Redis-Transactions.html#line-26" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:MonadRedis">MonadRedis</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a></span> <a href="src/Database-Redis-Transactions.html#line-31" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> <a href="Database-Redis.html#t:RedisTx">RedisTx</a> <a href="Database-Redis.html#t:Queued">Queued</a></span> <a href="src/Database-Redis-Transactions.html#line-34" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:20">Pub/Sub</h1><div class="top"><p class="src"><a name="v:publish" class="def">publish</a> <a href="src/Database-Redis-PubSub.html#publish" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>channel</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>message</p></td></tr><tr><td class="src">-> m (f <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a>)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Post a message to a channel (<a href="http://redis.io/commands/publish">http://redis.io/commands/publish</a>).</p></div></div><div class="top"><p class="src"><a name="v:pubSub" class="def">pubSub</a> <a href="src/Database-Redis-PubSub.html#pubSub" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Database-Redis.html#t:PubSub">PubSub</a></td><td class="doc"><p>Initial subscriptions.</p></td></tr><tr><td class="src">-> (<a href="Database-Redis.html#t:Message">Message</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="Database-Redis.html#t:PubSub">PubSub</a>)</td><td class="doc"><p>Callback function.</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:Redis">Redis</a> ()</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Listens to published messages on subscribed channels and channels matching
the subscribed patterns. For documentation on the semantics of Redis
Pub/Sub see <a href="http://redis.io/topics/pubsub">http://redis.io/topics/pubsub</a>.</p><p>The given callback function is called for each received message.
Subscription changes are triggered by the returned <code><a href="Database-Redis.html#t:PubSub">PubSub</a></code>. To keep
subscriptions unchanged, the callback can return <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#v:mempty">mempty</a></code>.</p><p>Example: Subscribe to the "news" channel indefinitely.</p><pre> pubSub (subscribe ["news"]) $ \msg -> do
putStrLn $ "Message from " ++ show (msgChannel msg)
return mempty
</pre><p>Example: Receive a single message from the "chat" channel.</p><pre> pubSub (subscribe ["chat"]) $ \msg -> do
putStrLn $ "Message from " ++ show (msgChannel msg)
return $ unsubscribe ["chat"]
</pre></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Message" class="def">Message</a> <a href="src/Database-Redis-PubSub.html#Message" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Message" class="def">Message</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:msgChannel" class="def">msgChannel</a>, <a name="v:msgMessage" class="def">msgMessage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr><tr><td class="src"><a name="v:PMessage" class="def">PMessage</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:msgPattern" class="def">msgPattern</a>, <a name="v:msgChannel" class="def">msgChannel</a>, <a name="v:msgMessage" class="def">msgMessage</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></dt><dd class="doc empty"> </dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Message" class="caption collapser" onclick="toggleSection('i:Message')">Instances</p><div id="section.i:Message" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:Message">Message</a></span> <a href="src/Database-Redis-PubSub.html#line-107" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:PubSub" class="def">PubSub</a> <a href="src/Database-Redis-PubSub.html#PubSub" class="link">Source</a></p><div class="doc"><p>Encapsulates subscription changes. Use <code><a href="Database-Redis.html#v:subscribe">subscribe</a></code>, <code><a href="Database-Redis.html#v:unsubscribe">unsubscribe</a></code>,
<code><a href="Database-Redis.html#v:psubscribe">psubscribe</a></code>, <code><a href="Database-Redis.html#v:punsubscribe">punsubscribe</a></code> or <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#v:mempty">mempty</a></code> to construct a value. Combine
values by using the <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a></code> interface, i.e. <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#v:mappend">mappend</a></code> and <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#v:mconcat">mconcat</a></code>.</p></div><div class="subs instances"><p id="control.i:PubSub" class="caption collapser" onclick="toggleSection('i:PubSub')">Instances</p><div id="section.i:PubSub" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:PubSub">PubSub</a></span> <a href="src/Database-Redis-PubSub.html#line-46" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> <a href="Database-Redis.html#t:PubSub">PubSub</a></span> <a href="src/Database-Redis-PubSub.html#line-48" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:subscribe" class="def">subscribe</a> <a href="src/Database-Redis-PubSub.html#subscribe" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>channel</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:PubSub">PubSub</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Listen for messages published to the given channels
(<a href="http://redis.io/commands/subscribe">http://redis.io/commands/subscribe</a>).</p></div></div><div class="top"><p class="src"><a name="v:unsubscribe" class="def">unsubscribe</a> <a href="src/Database-Redis-PubSub.html#unsubscribe" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>channel</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:PubSub">PubSub</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Stop listening for messages posted to the given channels
(<a href="http://redis.io/commands/unsubscribe">http://redis.io/commands/unsubscribe</a>).</p></div></div><div class="top"><p class="src"><a name="v:psubscribe" class="def">psubscribe</a> <a href="src/Database-Redis-PubSub.html#psubscribe" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>pattern</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:PubSub">PubSub</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Listen for messages published to channels matching the given patterns
(<a href="http://redis.io/commands/psubscribe">http://redis.io/commands/psubscribe</a>).</p></div></div><div class="top"><p class="src"><a name="v:punsubscribe" class="def">punsubscribe</a> <a href="src/Database-Redis-PubSub.html#punsubscribe" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>]</td><td class="doc"><p>pattern</p></td></tr><tr><td class="src">-> <a href="Database-Redis.html#t:PubSub">PubSub</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Stop listening for messages posted to channels matching the given patterns
(<a href="http://redis.io/commands/punsubscribe">http://redis.io/commands/punsubscribe</a>).</p></div></div><h1 id="g:21">Low-Level Command API</h1><div class="top"><p class="src"><a name="v:sendRequest" class="def">sendRequest</a> :: (<a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> m f, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> a) => [<a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>] -> m (f a) <a href="src/Database-Redis-Core.html#sendRequest" class="link">Source</a></p><div class="doc"><p><code><a href="Database-Redis.html#v:sendRequest">sendRequest</a></code> can be used to implement commands from experimental
versions of Redis. An example of how to implement a command is given
below.</p><pre>-- |Redis DEBUG OBJECT command
debugObject :: ByteString -> <code><a href="Database-Redis.html#t:Redis">Redis</a></code> (Either <code><a href="Database-Redis.html#t:Reply">Reply</a></code> ByteString)
debugObject key = <code><a href="Database-Redis.html#v:sendRequest">sendRequest</a></code> ["DEBUG", "OBJECT", key]
</pre></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Reply" class="def">Reply</a> <a href="src/Database-Redis-Protocol.html#Reply" class="link">Source</a></p><div class="doc"><p>Low-level representation of replies from the Redis server.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SingleLine" class="def">SingleLine</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Error" class="def">Error</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Integer" class="def">Integer</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Bulk" class="def">Bulk</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a>)</td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:MultiBulk" class="def">MultiBulk</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Database-Redis.html#t:Reply">Reply</a>])</td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Reply" class="caption collapser" onclick="toggleSection('i:Reply')">Instances</p><div id="section.i:Reply" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:Reply">Reply</a></span> <a href="src/Database-Redis-Protocol.html#line-18" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:Reply">Reply</a></span> <a href="src/Database-Redis-Protocol.html#line-18" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:Reply">Reply</a></span> <a href="src/Database-Redis-Types.html#line-44" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisCtx">RedisCtx</a> <a href="Database-Redis.html#t:Redis">Redis</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a>)</span> <a href="src/Database-Redis-Core.html#line-46" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Status" class="def">Status</a> <a href="src/Database-Redis-Types.html#Status" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Ok" class="def">Ok</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Pong" class="def">Pong</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Status" class="def">Status</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:Status" class="caption collapser" onclick="toggleSection('i:Status')">Instances</p><div id="section.i:Status" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> <a href="Database-Redis.html#t:Status">Status</a></span> <a href="src/Database-Redis-Types.html#line-39" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:Status">Status</a></span> <a href="src/Database-Redis-Types.html#line-39" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:Status">Status</a></span> <a href="src/Database-Redis-Types.html#line-60" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:RedisResult" class="def">RedisResult</a> a <span class="keyword">where</span> <a href="src/Database-Redis-Types.html#RedisResult" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:decode" class="def">decode</a> :: <a href="Database-Redis.html#t:Reply">Reply</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Either.html#t:Either">Either</a> <a href="Database-Redis.html#t:Reply">Reply</a> a <a href="src/Database-Redis-Types.html#decode" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:RedisResult" class="caption collapser" onclick="toggleSection('i:RedisResult')">Instances</p><div id="section.i:RedisResult" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></span> <a href="src/Database-Redis-Types.html#line-78" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a></span> <a href="src/Database-Redis-Types.html#line-57" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a></span> <a href="src/Database-Redis-Types.html#line-52" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.6.0/Data-ByteString.html#t:ByteString">ByteString</a></span> <a href="src/Database-Redis-Types.html#line-47" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:Reply">Reply</a></span> <a href="src/Database-Redis-Types.html#line-44" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:RedisType">RedisType</a></span> <a href="src/Database-Redis-Types.html#line-67" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:Status">Status</a></span> <a href="src/Database-Redis-Types.html#line-60" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> <a href="Database-Redis.html#t:Slowlog">Slowlog</a></span> <a href="src/Database-Redis-Types.html#line-66" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="Database-Redis.html#t:RedisResult">RedisResult</a> k, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> v) => <a href="Database-Redis.html#t:RedisResult">RedisResult</a> [(k, v)]</span> <a href="src/Database-Redis-Types.html#line-97" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> a => <a href="Database-Redis.html#t:RedisResult">RedisResult</a> [a]</span> <a href="src/Database-Redis-Types.html#line-89" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Database-Redis.html#t:RedisResult">RedisResult</a> a => <a href="Database-Redis.html#t:RedisResult">RedisResult</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a)</span> <a href="src/Database-Redis-Types.html#line-84" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="Database-Redis.html#t:RedisResult">RedisResult</a> a, <a href="Database-Redis.html#t:RedisResult">RedisResult</a> b) => <a href="Database-Redis.html#t:RedisResult">RedisResult</a> (a, b)</span> <a href="src/Database-Redis-Types.html#line-93" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:ConnectionLostException" class="def">ConnectionLostException</a> <a href="src/Database-Redis-ProtocolPipelining.html#ConnectionLostException" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ConnectionLost" class="def">ConnectionLost</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:ConnectionLostException" class="caption collapser" onclick="toggleSection('i:ConnectionLostException')">Instances</p><div id="section.i:ConnectionLostException" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> <a href="Database-Redis.html#t:ConnectionLostException">ConnectionLostException</a></span> <a href="src/Database-Redis-ProtocolPipelining.html#line-56" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Database-Redis.html#t:ConnectionLostException">ConnectionLostException</a></span> <a href="src/Database-Redis-ProtocolPipelining.html#line-58" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="doc"><dl><dt>Solution to Exercise</dt><dd></dd></dl><p>Type of <code><a href="Database-Redis.html#v:expire">expire</a></code> inside a transaction:</p><pre>expire :: ByteString -> Integer -> RedisTx (Queued Bool)</pre><p>Type of <code><a href="Database-Redis.html#v:lindex">lindex</a></code> outside of a transaction:</p><pre>lindex :: ByteString -> Integer -> Redis (Either Reply ByteString)</pre></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|