// Serialization of sub command items func (s *ServerStat) Items(storage *cache.LRUCache) map[string]string { dict := make(map[string]string) dict["number"] = tools.IntToString(int64(storage.Stats.Current_items)) dict["age"] = tools.IntToString(time.Now().Unix() - storage.Oldest()) dict["expired_unfetched"] = tools.IntToString(int64(storage.Stats.Expired_unfetched)) dict["evicted_unfetched"] = tools.IntToString(int64(storage.Stats.Evicted_unfetched)) dict["crawler_reclaimed"] = tools.IntToString(storage.Stats.Crawler_reclaimed) dict["outofmemory"] = tools.IntToString(storage.Stats.Outofmem) return dict }