Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andrewchambers/janet-redis
- Owner: andrewchambers
- License: mit
- Created: 2019-12-25T22:38:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-13T22:35:59.000Z (about 2 years ago)
- Last Synced: 2024-08-04T04:01:04.659Z (3 months ago)
- Topics: janet, redis
- Language: C
- Size: 18.6 KB
- Stars: 14
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-janet - janet-redis
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)
```