enum NATS::JetStream::StreamConfig::Storage
Overview
The Storage
parameter tells the NATS server how to store the
messages in the stream.
Defined in:
jetstream/stream_config.crEnum Members
-
Memory =
0
-
Store messages in memory. This is the fastest, but is not durable. If the NATS server is restarted for any reason, the stream will be dropped. Using this option may also increase the amount of memory required by your NATS server. Use with caution.
-
File =
1
-
Store messages on disk. Always use this if your system depends on 100% delivery.