This page is maintained in the package's github repository.
Fast bindings to redis using hiredis. Note that you will need to fetch the git submodules in this package. These bindings provide only the synchornous API and at the moment do not provide timeouts.
- (redis-connect hostname port)
- (redis-command context string)
- (redis-command* context command . arguments)
(redis-command (redis-connect "127.0.0.1" 6379) "keys *")
This will produce a list of strings, the keys in the redis database.
(begin (redis-command* (redis-connect "127.0.0.1" 6379) "hset" "a" "b" "x y z") (redis-command* (redis-connect "127.0.0.1" 6379) "hget" "a" "b"))
Set key b in hash table a to a string which may contain whitespace and retrieve that string.
Copyright 2012-2013 Andrei Barbu. All rights reserved.
Contact Andrei Barbu at email@example.com.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses.