c
实例方法:
1
|
import redis.clients.jedis.*
|
1
2
3
|
Jedisjedis= new Jedis( "localhost" );
jedis.set( "foo" , "bar" );
Stringvalue=jedis.get( "foo" );
|
支持的特效:
-
Sorting
-
Connection handling
-
Commands operating on any kind of values
-
Commands operating on string values
-
Commands operating on hashes
-
Commands operating on lists
-
Commands operating on sets
-
Commands operating on sorted sets
-
Transactions
-
Pipelining
-
Publish/Subscribe
-
Persistence control commands
-
Remote server control commands
-
Connection pooling
-
Sharding (MD5, MurmurHash)
-
Key-tags for sharding
-
Sharding with pipelining
-
Scripting with pipelining
Maven:
1
|
redis.clientsjedis2.0.0jarcompile
|