Navigation



index

next |

previous |

redis 2.0.3 documentation »
 



Table Of Contents

















Previous topic


Redis

Next topic


README

This Page



Show Source
 

Enter search terms or a module, class or function name.









5Redis使RedisRedis


Redistarball:

$ wget http://redis.googlecode.com/files/redis-2.0.4.tar.gz


github:

$ git clone git://github.com/antirez/redis.git




RedisPOSIXRedistar.gz make :

$ tar xvzf redis-1.02.tar.gz
$ cd redis-1.02
$ make


Redis make test 



RedisRedis:

$ ./redis-server


Redis



Redis make Redis redis-cli 

:

$ ./redis-cli set mykey somevalue
OK
$ ./redis-cli get mykey
somevalue


:

$ ./redis-cli lpush mylist firstvalue
OK
$ ./redis-cli lpush mylist secondvalue
OK
$ ./redis-cli lpush mylist thirdvalue
OK
$ ./redis-cli lrange mylist 0 -1
1. thirdvalue
2. secondvalue
3. firstvalue
$ ./redis-cli rpop mylist
firstvalue
$ ./redis-cli lrange mylist 0 -1
1. thirdvalue
2. secondvalue





RedisRedis15



使

Redis使





 





Navigation



index

next |

previous |

redis 2.0.3 documentation »
 


© Copyright 2010, antirez.  Created using Sphinx 1.1.3.