update docs
This commit is contained in:
+10
-2
@@ -38,8 +38,16 @@
|
||||
<p>is a wrapper around Redis connections. It supports opening a
|
||||
connection using <a href="#open"><code>open</code></a> or <a href="#open-on"><code>open-on</code></a>, reading from and
|
||||
sending to the connection (using <a href="#read"><code>read</code></a> and <a href="#send"><code>send</code></a>,
|
||||
respectively), and contains thin wrappers around all Redis commands (everything
|
||||
else).</p>
|
||||
respectively), and contains thin wrappers around all Redis commands through 7.2.</p>
|
||||
<pre><code>(match (Redis.open "127.0.0.1")
|
||||
(Result.Success r)
|
||||
(do
|
||||
(println* &(Redis.set &r @"key" @"val"))
|
||||
(println* &(Redis.get &r @"key"))
|
||||
(println* &(Redis.lrange &r @"list" @"0" @"-1"))
|
||||
(Redis.close r))
|
||||
(Result.Error err) (IO.errorln &err))
|
||||
</code></pre>
|
||||
|
||||
</div>
|
||||
<div class="binder">
|
||||
|
||||
Reference in New Issue
Block a user