Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pheuter/ooc-redis
ooc bindings for redis based off of hiredis
https://github.com/pheuter/ooc-redis
Last synced: about 2 months ago
JSON representation
ooc bindings for redis based off of hiredis
- Host: GitHub
- URL: https://github.com/pheuter/ooc-redis
- Owner: pheuter
- Created: 2010-07-10T18:01:04.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-07-10T18:01:28.000Z (over 14 years ago)
- Last Synced: 2024-10-12T23:13:34.072Z (3 months ago)
- Language: ooc
- Homepage:
- Size: 184 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
About
=====*ooc-redis* is a redis binding for the [ooc](http://ooc-lang.org) language. This binding requires that you have hiredis headers in ``/usr/include`` and the hiredis dynamic library (which you get after running make in the hiredis distribution) in ``/usr/lib``. If you do not have those directories, place the header and dynamic library files wherever your system keeps them by default.
Install
=======1. Install [hiredis](http://github.com/antirez/hiredis)
2. In your $OOC_LIBS directory, ``git clone http://github.com/gmaster1440/ooc-redis.git``
3. See ``sample/list.ooc`` for a sample program
Usage
=====First, you create a Redis object
r := Redis new("127.0.0.1", 6379)
To issue a command
send(r fd, "PING") // r fd is a mandatory parameter always``send`` returns a RedisReply*
To issue command and save the reply
r << send(r fd, "PING")To fetch the reply message
r getReply()To fetch reply if it was an integer
r getInteger()API
====The redis.ooc isn't very long and rather understandable. Feel free to look through for reference.