Skip to content

Instantly share code, notes, and snippets.

let () =
Eio_main.run
@@ fun env ->
Mirage_crypto_rng_eio.run (module Mirage_crypto_rng.Fortuna) env
@@ fun () ->
let net = Eio.Stdenv.net env in
Eio.Net.with_tcp_connect ~service:"https" ~host:"www.example.org" net
@@ fun conn ->
let conn =
Tls_eio.client_of_flow

Keybase proof

I hereby claim:

  • I am specialblend on github.
  • I am specialblend (https://keybase.io/specialblend) on keybase.
  • I have a public key ASC8DhX598Po5lzrDbrJtss4DgBSLL22LVXmWd4RCmW-ygo

To claim this, I am signing this object:

extern crate redis;
use redis::{Client, Commands};
fn main() {
println!("Hello, world!");
match Client::open("redis://127.0.0.1:6379/") {
Ok(client) => {
match client.get_connection() {
➜ test-rust-redis git:(support/match) cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Running `target/debug/test-rust-redis`
Hello, world!
unable to set value in redis: Response was of incompatible type: "Response type not convertible to numeric." (response was ok)
Bye, world.