Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replica mode #294

Open
laixintao opened this issue Mar 7, 2020 · 0 comments
Open

replica mode #294

laixintao opened this issue Mar 7, 2020 · 0 comments

Comments

@laixintao
Copy link
Owner

➜ iredis iredis git:(redis-doc-update) iredis
iredis  1.2.0 (Python 3.8.0)
redis-server  5.0.7
Home:   https://iredis.io
Issues: https://iredis.io/issues
127.0.0.1:6379> sync
"REDIS0009\xfa\tredis-ver\x055.0.7\xfa\nredis-bits\xc0@\xfa\x05ctime\xc2P\xafc^\xfa\x08used-mem\xc2\xb0\x83 \x00\xfa\x0erepl-strea
m-db\xc0\x00\xfa\x07repl-id(31cded3c572f2625d9ac2872b6307a2e8e2e1bf7\xfa\x0brepl-offset\xc0\x00\xfa\x0caof-preamble\xc0\x00\xfe\x0
0\xfb\x0c\x00\x02\x05myset\x05\x07hello-4\x07hello-1\x07hello-3\x07hello-2\x07hello-5\x00\x0bjson-string\x1a{\"name\": \"Bob\", \"
age\": 37}\x0e\x05list1\x01\x1c\x1c\x00\x00\x00\x16\x00\x00\x00\x04\x00\x00\x03ghi\x05\x01f\x03\x02de\x04\x03abc\xff\x00\x05hello\
x06iredis\x0e\x06list11\x01\x1c\x1c\x00\x00\x00\x16\x00\x00\x00\x04\x00\x00\x03ghi\x05\x01f\x03\x02de\x04\x03abc\xff\r\x05hash2##\
x00\x00\x00\x1b\x00\x00\x00\x04\x00\x00\x03foo\x05\x03bar\x05\x05hello\x07\x05world\xff\x00\x02t1\x02\"'\x00\x05multi\x0ehello \\n
 world\x00\ncurrent-db\xc0\x07\x00\x05proto\x01v\x0e\x04list\x01\x1c\x1c\x00\x00\x00\x16\x00\x00\x00\x05\x00\x00\x01g\x03\x01f\x03
\x01e\x03\x01d\x03\x03abc\xff\x0e\x0clist:animals\x01  \x00\x00\x00\x1a\x00\x00\x00\x04\x00\x00\x04duck\x06\x03pig\x05\x03dog\x05\
x03cat\xff\xfe\x01\xfb\x01\x00\x00\x03foo\x03bar\xfe\x02\xfb\x01\x00\x02\x15_kombu.binding.celery\x01\x10celery\x06\x16\x06\x16cel
ery\xfe\x06\xfb\x03\x00\x0e\x0clist:animals\x01\x1b\x1b\x00\x00\x00\x14\x00\x00\x00\x03\x00\x00\x03cat\x05\x03dog\x05\x04duck\xff\
x00\x03foo\x03bar\x0e\x04list\x01\x1d\x1d\x00\x00\x00\x19\x00\x00\x00\x06\x00\x00\x01c\x03\x01b\x03\x01a\x03\x01a\x03\x01b\x03\x01
c\xff\xfe\x07\xfb\x01\x00\x00\ncurrent-db\xc0\x07\xfe\x0f\xfb\x01\x00\x0f\x08mystream\x01\x10\x00\x00\x01p\xa8V\xf0\x83\x00\x00\x00\x00\x00\x00\x00\x00//\x00\x00\x00\x0c\x00\x01\x01\x00\x01\x02\x01\x83foo\x04\x85hello\x06\x00\x01\x02\x01\x00\x01\x00\x01\x83bar\x04\x85world\x06\x05\x01\xff\x01\x81\x00\x00\x01p\xa8V\xf0\x83\x00\x00\xff\x98N\tB\xc7\x9c\x8e\x9d"
127.0.0.1:6379>
Goodbye!
➜ iredis iredis git:(redis-doc-update) redis-cli
127.0.0.1:6379> sync
Entering replica output mode...  (press Ctrl-C to quit)
SYNC with master, discarding 802 bytes of bulk transfer...
SYNC done. Logging commands from master.
^C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant