easy installation on Linux and data loss

Hint, this is a new behavior for me, I’m confused - I probably don’t know something, but more likely I’m lazy and don’t read the manual.
Please help me with the section I need to read

what do I know about Redis ? I use it in Python Celery, maybe of course this behavior there too, I don’t know.
In MongoDB I don’t remember this behavior. Not even close to it in My/Postgre itself

The question:

Running on Linux

/opt# ./dragonfly

  • Logs will be written to the first available of the following paths:
    /tmp/dragonfly.*
    ./dragonfly.*
  • For the available flags type dragonfly [–help | --helpfull]
  • Documentation can be found at: https://www.dragonflydb.io/docs

process is running - not in background, it is not quenched via tmux.

sent data via DataGrip

SET key1 value1

SET key10 value10

I check GET everything ok

after some time - NO data, GET returns NULL

is that supposed to be the case? maybe some simple key would make it familiar? Where to read, help please

Hey there, can you please check if - at the point where it returns null - you can use another client, like redis-cli to interact with Dragonfly? Try to run a simple command like set x y and then get x and see if it returns y

Thanks for the help, I must have misunderstood the concept, I added --cache_mode=true and --maxmemory and everything seems to be working so far, as I understand - it’s enough to keep an eye on the database size

now I will look for mechanisms of permanent storage: I need something to fill the dragonfly database when the server restarts, for example (probably --dbfilename dump.rdb should be enough).