Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewchambers/janet-redis

Janet redis bindings based on hiredis
https://github.com/andrewchambers/janet-redis

janet redis

Last synced: 1 day ago
JSON representation

Janet redis bindings based on hiredis

Awesome Lists containing this project

README

        

# janet-redis
A janet redis library built with the official hiredis C library.

Quick Example:
```
(import redis)

(def r (redis/connect "localhost" 1337))

# Simple commands
(redis/command r "SET" "FOOBAR" "BAZ")
(redis/command r "GET" "FOOBAR")
# "BAZ"

# Command pipelining
(redis/append r "PING")
(redis/append r "PING")
(redis/get-reply r)
# "PONG"
(redis/get-reply r)
# "PONG"

(redis/close r)
```