Skip to content

Commit 3bea997

Browse files
committed
all: switch to gopkg.in.
1 parent df12cdc commit 3bea997

30 files changed

+1571
-7563
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
all:
2-
go test ./v2
2+
go test gopkg.in/redis.v1

README.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
1-
New version
2-
===========
1+
Redis client for Golang [![Build Status](https://travis-ci.org/vmihailenco/redis.png?branch=master)](https://travis-ci.org/go-redis/redis)
2+
=======================
33

4-
Make sure to check new version of the client that got better API and timeout support: https://github.com/vmihailenco/redis/tree/master/v2
4+
Supports:
5+
6+
- Redis 2.8 commands except QUIT, MONITOR, SLOWLOG and SYNC.
7+
- Pub/sub.
8+
- Transactions.
9+
- Pipelining.
10+
- Connection pool.
11+
- TLS connections.
12+
- Thread safety.
13+
- Timeouts.
14+
15+
API docs: http://godoc.org/gopkg.in/redis.v1.
16+
Examples: http://godoc.org/gopkg.in/redis.v1#pkg-examples.
17+
18+
Installation
19+
------------
20+
21+
Install:
22+
23+
go get gopkg.in/redis.v1
24+
25+
Look and feel
26+
-------------
27+
28+
Some corner cases:
29+
30+
SORT list LIMIT 0 2 ASC
31+
vals, err := client.Sort("list", redis.Sort{Offset: 0, Count: 2, Order: "ASC"}).Result()
32+
33+
ZRANGEBYSCORE zset -inf +inf WITHSCORES LIMIT 0 2
34+
vals, err := client.ZRangeByScoreWithScores("zset", redis.ZRangeByScore{
35+
Min: "-inf",
36+
Max: "+inf",
37+
Offset: 0,
38+
Count: 2,
39+
}).Result()
40+
41+
ZINTERSTORE out 2 zset1 zset2 WEIGHTS 2 3 AGGREGATE SUM
42+
vals, err := client.ZInterStore("out", redis.ZStore{Weights: []int64{2, 3}}, "zset1", "zset2").Result()
43+
44+
EVAL "return {KEYS[1],ARGV[1]}" 1 "key" "hello"
45+
vals, err := client.Eval("return {KEYS[1],ARGV[1]}", []string{"key"}, []string{"hello"}).Result()
File renamed without changes.

0 commit comments

Comments
 (0)