ledisdb / xcodis

Yet another redis proxy based on codis(https://github.com/wandoulabs/codis)
MIT License
187 stars 26 forks source link

xcodis能只用 redis的db 0吗? #9

Open weisd opened 9 years ago

weisd commented 9 years ago

怎么配置呢?

siddontang commented 9 years ago

xcodis使用的db index作为类似codis里面的slot分区,所以对外仍然没有db index概念,外部使用只能是db 0。

weisd commented 9 years ago

我的意思是, 内部redis的db index 只用 db 0, 不用其他index, 只用一个

siddontang commented 9 years ago

会用不同的index,不光是0

weisd commented 9 years ago

我只想用0,有办法配置吗

weisd commented 9 years ago

我后端有4个redis, 只能用这4个redis 的db 0

siddontang commented 9 years ago

现阶段没法子,因为xcodis用db index来模拟的slot。codis之所以全用0,主要是因为他们改了redis,加了slot这个数据结构,但我想用原生的redis。

另外,既然你用了proxy,后端的redis到底怎么存的其实你并不需要太care了,所以我不明白为什么只能用0

weisd commented 9 years ago