Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for memory usage ... command #301

Merged
merged 1 commit into from Jan 24, 2024
Merged

Add support for memory usage ... command #301

merged 1 commit into from Jan 24, 2024

Conversation

jasonpenny
Copy link
Contributor

MEMORY USAGE key currently results in NoMethodError: undefined method 'memory' for #<MockRedis::Database...

This change will return a hardcoded numeric value

> m = MockRedis.new
> m.call(["memory", "usage", "foo"])
=> nil

> m.set("foo", "anything")
=> "OK"

> m.call(["memory", "usage", "foo"])
=> 160

@sds sds merged commit 2665966 into sds:main Jan 24, 2024
11 checks passed
@sds
Copy link
Owner

sds commented Jan 24, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants