Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

maxmemory INFO field added. #19

Closed
wants to merge 1 commit into from

1 participant

@khamin

maxmemory INFO field added.
hope it useful.

This was referenced
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2010
  1. @khamin

    maxmemory INFO field added.

    khamin authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/redis.c
View
2  src/redis.c
@@ -1172,6 +1172,7 @@ sds genRedisInfoString(void) {
"blocked_clients:%d\r\n"
"used_memory:%zu\r\n"
"used_memory_human:%s\r\n"
+ "maxmemory:%llu\r\n"
"mem_fragmentation_ratio:%.2f\r\n"
"changes_since_last_save:%lld\r\n"
"bgsave_in_progress:%d\r\n"
@@ -1203,6 +1204,7 @@ sds genRedisInfoString(void) {
server.blpop_blocked_clients,
zmalloc_used_memory(),
hmem,
+ server.maxmemory,
zmalloc_get_fragmentation_ratio(),
server.dirty,
server.bgsavechildpid != -1,
Something went wrong with that request. Please try again.