Add server command for `version` - closes #384

This commit is contained in:
Steve Lacy 2018-11-13 10:24:15 -07:00
parent dfcdeb7a51
commit 5c6c280559
No known key found for this signature in database
GPG Key ID: BA1696A6FA8C27F0
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ func (c *Server) cmdServer(msg *Message) (res resp.Value, err error) {
m["heap_released"] = mem.HeapReleased
m["max_heap_size"] = c.config.maxMemory()
m["avg_item_size"] = avgsz
m["version"] = core.Version
m["pointer_size"] = (32 << uintptr(uint64(^uintptr(0))>>63)) / 8
m["read_only"] = c.config.readOnly()
m["cpus"] = runtime.NumCPU()