RedisShake
Last updated
Last updated
不支持的命令
MULTI
EXEC./cmd/redis-shake/main.go
> * create writer
> * create reader
> * reader 读到数据后,将其放到 ch 管道中
> * ch := theReader.StartRead() //ch = make(chan *entry.Entry, 1024)
> * start sync
> * Go提供了 range 关键字,将其使用在 channel 上时,会自动等待 channel 的动作一直到channel被关闭
> * 从管道中获取到封装后的 entry ,然后进行 filter 之后,然后进行写数据 theWriter.Write(e)