Use approximate memory usage for QueueInfo

This commit is contained in:
Ken Hibino
2021-08-09 06:09:10 -07:00
parent 95c90a5cb8
commit e6355bf3f5
3 changed files with 81 additions and 23 deletions

View File

@@ -50,6 +50,7 @@ type QueueInfo struct {
Queue string
// Total number of bytes that the queue and its tasks require to be stored in redis.
// It is an approximate memory usage value in bytes since the value is computed by sampling.
MemoryUsage int64
// Size is the total number of tasks in the queue.