Skip to content
Merged
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ To override this for a single request, add the following request header with an
The redis storage provides a feature to reject PUT requests when the memory gets low. The information about the used memory is provided by the
redis _INFO_ command.

`Attention:` The stats received by the _INFO_ command depend on the redis version. The required stats are _used_memory_ and _total_system_memory_. Without these stats, the feature is disabled!
`Attention:` The stats received by the _INFO_ command depend on the redis version. The required stats are _used_memory_ and either _total_system_memory_ or _maxmemory_. When _total_system_memory_ is unavailable (e.g., older Redis versions, Valkey, or certain cluster configurations), _maxmemory_ is used as a fallback. Without at least one of these stats, the feature is disabled!

#### Configuration
To enable the feature, set the _rejectStorageWriteOnLowMemory_ property (ModuleConfiguration) to _true_. Additionally, the _freeMemoryCheckIntervalMs_ property can be
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.swisspush</groupId>
<artifactId>rest-storage</artifactId>
<version>3.1.21-SNAPSHOT</version>
<version>3.1.22-SNAPSHOT</version>
<name>rest-storage</name>
<description>
Persistence for REST resources in the filesystem or a redis database
Expand Down
Loading
Loading