Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, HyperLogLogs, Bitmaps.
tree: 1c14507366
Failed to load latest commit information.
client-libraries client-libraries directory readded
design-documents Added more information about slave election in Redis Cluster alternat…
doc HTML doc updated
tests Return error to client on wrong type for HMGET (backport of e584d82)
utils Fix for the init script provided with Redis, thanks to Rowan. This fi…
.gitignore release notes file added to git as well, wes always present in tar.gz…
00-RELEASENOTES version bumped to 2.0.4, release note for this version added
BETATESTING.txt Redis 1.0.0 release
BUGS first commit
COPYING first commit
Changelog
Makefile Added a Make install target, backported from master, fixing Issue 324
README Better README for 2.0.0 as well (issue 277)
TODO added regression for zipmap bug
adlist.c A problem with replication with multiple slaves connectiong to a sing…
adlist.h A problem with replication with multiple slaves connectiong to a sing…
ae.c A problem with replication with multiple slaves connectiong to a sing…
ae.h A problem with replication with multiple slaves connectiong to a sing…
ae_epoll.c A problem with replication with multiple slaves connectiong to a sing…
ae_kqueue.c ifdefs added to use kevent on Free Open and Net BSD as well. INFO and…
ae_select.c A problem with replication with multiple slaves connectiong to a sing…
anet.c A problem with replication with multiple slaves connectiong to a sing…
anet.h A problem with replication with multiple slaves connectiong to a sing…
config.h On Linux now fdatasync() is used insetad of fsync() in order to flush…
dict.c Changed the dict resize policy when BGSAVEs are in progress to a more
dict.h added dictFetchValue() to dict.c to make hash table API a bit less ve…
fmacros.h compilation fix for mac os x
linenoise.c redis-cli completely replaced with the version in Redis master
linenoise.h redis-cli completely replaced with the version in Redis master
lzf.h new LZF files added
lzfP.h LZF compression re-enabled by default, but with INIT_HTAB set to 0 to…
lzf_c.c new LZF files added
lzf_d.c new LZF files added
mkreleasehdr.sh fix compile error on solaris
pqsort.c A problem with replication with multiple slaves connectiong to a sing…
pqsort.h A problem with replication with multiple slaves connectiong to a sing…
redis-benchmark.c redis-benchmark now implements Set commands benchmarks
redis-check-aof.c fixed compilation warnings in the AOF sanity check tool
redis-check-dump.c Fix for issue 300 backported from master
redis-cli.c redis-cli does no longer try to auto detect if it is used inside a pi…
redis.c version bumped to 2.0.4, release note for this version added
redis.conf conflicts resolved
redis.h A problem with replication with multiple slaves connectiong to a sing…
sds.c redis-cli completely replaced with the version in Redis master
sds.h redis-cli completely replaced with the version in Redis master
sha1.c include solaris fixes in sha1.c
sha1.h DEBUG DIGEST implemented, in order to improve the ability to test per…
solarisfixes.h
staticsymbols.h Fix for DEBUG DIGEST
zipmap.c fix lookup of keys with length larger than ZIPMAP_BIGLEN
zipmap.h zipmap fix for large values
zmalloc.c
zmalloc.h A problem with replication with multiple slaves connectiong to a sing…

README

Where to find complete Redis documentation?
-------------------------------------------

This README is just a fast "quick start" document. You can find more detailed
documentation here:

1) http://code.google.com/p/redis
2) Check the 'doc' directory. doc/README.html is a good starting point :)

Building Redis
--------------

It is as simple as:

    % make

Redis is just a single binary, but if you want to install it you can use
the "make install" target that will copy the binary in /usr/local/bin
for default.

You can run a 32 bit Redis binary using:

    % make 32bit

After you build Redis is a good idea to test it, using:

    % make test

Running Redis
-------------

To run Redis with the default configuration just type:

    % ./redis-server
    
If you want to provide your redis.conf, you have to run it using an additional
parameter (the path of the configuration file):

    % ./redis-server /path/to/redis.conf

Playing with Redis
------------------

You can use redis-cli to play with Redis. Start a redis-server instance,
then in another terminal try the following:

    % ./redis-cli
    redis> ping
    PONG
    redis> set foo bar
    OK
    redis> get foo
    "bar"
    redis> incr mycounter
    (integer) 1
    redis> incr mycounter
    (integer) 2
    redis> 

You can find the list of all the available commands here:

    http://code.google.com/p/redis/wiki/CommandReference

Enjoy!

Something went wrong with that request. Please try again.