Skip to content

andrewchambers/janet-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Janet redis bindings based on hiredis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published