gosexy / redis

Redis client for Go that maps the full redis command list into equivalent Go functions.
MIT License
167 stars 44 forks source link

Is there a namespace #35

Open xuxiangyang opened 9 years ago

xuxiangyang commented 9 years ago

Is there a namespace in redis,when I new a namespaced client, all keys that created by the the client will auto add a prefix namespace。Like this client.Set("a", "b") , the client is binding to a namespace "test"。redis will generate a key "test::a" with value "b" when I get from redis,Like This client.Get("a", 'b"), redis actually return value with the key "test::a"。 So, we can use redis with multi-projects。I am a newer for golang,I can not contribute code for you.... sorry