Сервер Redis через некоторое время удаляет ключи. Для команды списка клиентов я получаю ответ ниже.
<redisIp>:0>CLIENT LIST
"id=208 addr=10.1.0.6:36010 fd=12 name= age=27 idle=27 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=176 addr=192.168.20.7:2769 fd=11 name= age=40 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
id=220 addr=10.1.0.8:57748 fd=6 name= age=9 idle=9 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=197 addr=10.1.0.6:35980 fd=5 name= age=28 idle=28 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=216 addr=10.1.0.7:34628 fd=13 name= age=26 idle=26 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
"
<redisIp>:0>CLIENT LIST
"id=261 addr=10.1.0.6:36366 fd=9 name= age=27 idle=27 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=271 addr=10.1.0.8:57960 fd=10 name= age=27 idle=27 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=294 addr=10.1.0.8:58084 fd=6 name= age=11 idle=11 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=311 addr=10.1.0.8:58130 fd=7 name= age=6 idle=6 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=312 addr=192.168.20.7:16625 fd=5 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
id=283 addr=10.1.0.7:34868 fd=12 name= age=24 idle=24 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=291 addr=10.1.0.6:36402 fd=13 name= age=23 idle=23 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
"
<redisIp>:0>CLIENT LIST
"id=13983 addr=10.1.0.8:51382 fd=7 name= age=22 idle=22 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=14009 addr=192.168.20.6:12393 fd=8 name= age=10 idle=10 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=info
id=14008 addr=10.1.0.7:49850 fd=5 name= age=12 idle=12 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=14014 addr=10.1.0.6:52312 fd=9 name= age=2 idle=2 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
id=14015 addr=192.168.20.6:12424 fd=10 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
id=13980 addr=10.1.0.8:51304 fd=6 name= age=30 idle=30 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=hget
"
Ниже приведены журналы сервера Redis.
80792:M 15 Mar 12:26:18.126 * Background saving terminated with success
80792:M 15 Mar 12:31:19.056 * 10 changes in 300 seconds. Saving...
80792:M 15 Mar 12:31:19.056 * Background saving started by pid 118087
118087:C 15 Mar 12:31:19.084 * DB saved on disk
118087:C 15 Mar 12:31:19.085 * RDB: 0 MB of memory used by copy-on-write
80792:M 15 Mar 12:31:19.156 * Background saving terminated with success
119319:M 15 Mar 12:35:56.243 * Increased maximum number of open files to 10032 (it was originally set to 1024).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.2.11 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 119319
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
119319:M 15 Mar 12:35:56.244 # Server started, Redis version 3.2.11
119319:M 15 Mar 12:35:56.246 * DB loaded from disk: 0.002 seconds
119319:M 15 Mar 12:35:56.246 * The server is now ready to accept connections on port 6379
119319:M 15 Mar 12:40:57.041 * 10 changes in 300 seconds. Saving...
119319:M 15 Mar 12:40:57.041 * Background saving started by pid 120519
120519:C 15 Mar 12:40:57.070 * DB saved on disk
120519:C 15 Mar 12:40:57.071 * RDB: 0 MB of memory used by copy-on-write
119319:M 15 Mar 12:40:57.142 * Background saving terminated with success
119319:M 15 Mar 12:45:58.035 * 10 changes in 300 seconds. Saving...
119319:M 15 Mar 12:45:58.035 * Background saving started by pid 121825
121825:C 15 Mar 12:45:58.053 * DB saved on disk
121825:C 15 Mar 12:45:58.053 * RDB: 0 MB of memory used by copy-on-write
119319:M 15 Mar 12:45:58.136 * Background saving terminated with success
119319:M 15 Mar 12:50:59.033 * 10 changes in 300 seconds. Saving...
119319:M 15 Mar 12:50:59.033 * Background saving started by pid 123057
123057:C 15 Mar 12:50:59.053 * DB saved on disk
123057:C 15 Mar 12:50:59.054 * RDB: 0 MB of memory used by copy-on-write
119319:M 15 Mar 12:50:59.133 * Background saving terminated with success
Redis работает в Linux ОС. Я не понимаю, почему это удаляется. Redis работает как автономный сервер. Я не получаю ли это из-за проблемы на стороне клиента или на стороне сервера. Но если я перезапущу сервер redis снова, ключи будут восстановлены.