I got snapshot rdb file from server. At the point of snapshoting there was keys with defined ttl using EXPIRE
command . After starting server locally with the key --dbfilename dump.rdb
all keys with defined ttl expired.
For me it seems that there should be keys in binary file anyway.
If it can help: the snapshot was created in AWS elasticache environment.
Is it possible to start server from backup and restore keys?