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
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 Thisclient.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