[][src]Function iredismodule::get_used_memory_ratio

pub fn get_used_memory_ratio() -> f32

Return the a number between 0 to 1 indicating the amount of memory currently used, relative to the Redis "maxmemory" configuration.

0 - No memory limit configured. Between 0 and 1 - The percentage of the memory used normalized in 0-1 range. Exactly 1 - Memory limit reached. Greater 1 - More memory used than the configured limit.