https://github.com/hellerve/redis
A redis client library for zepto
https://github.com/hellerve/redis
Last synced: 2 months ago
JSON representation
A redis client library for zepto
- Host: GitHub
- URL: https://github.com/hellerve/redis
- Owner: hellerve
- Created: 2016-07-14T14:57:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-01T17:51:24.000Z (over 9 years ago)
- Last Synced: 2025-02-12T05:12:12.777Z (about 1 year ago)
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redis
A Redis client for zepto.
It is stable and maintained, but not really battle-tested.
# Installation
```
zeps install hellerve/redis
```
# Usage
Most commands of redis are supported. The naming
scheme follows the template of `redis:the-command-in-lower-case`.
```clojure
(load "redis/redis")
(define redis-client (redis:new)) ; defaults to a connection to 127.0.0.1:6379
; you can also open a connection to a specific IP/Port pair
(define redis-client (redis:new :ip "192.168.1.2"
:port 6331))
(redis:ping redis-client) ; "PONG"
(redis:dbsize redis-client) ; some integer denoting the current db size
(redis:set redis-client "zepto" "myvalue") ; sets "zepto" to "myvalue"
(redis:get redis-client "zepto") ; "myvalue"
```
Have fun!