-
Notifications
You must be signed in to change notification settings - Fork 193
Add sadd_returns_boolean + sadd? method #217
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,7 @@ class Namespace | |
"rpush" => [ :first ], | ||
"rpushx" => [ :first ], | ||
"sadd" => [ :first ], | ||
"sadd?" => [ :first ], | ||
"scard" => [ :first ], | ||
"scan" => [ :scan_style, :second ], | ||
"scan_each" => [ :scan_style, :all ], | ||
|
@@ -239,6 +240,13 @@ class Namespace | |
# Support 1.8.7 by providing a namespaced reference to Enumerable::Enumerator | ||
Enumerator = Enumerable::Enumerator unless defined?(::Enumerator) | ||
|
||
# This is used by the Redis gem to determine whether or not to display that deprecation message. | ||
@sadd_returns_boolean = true | ||
|
||
class << self | ||
attr_accessor :sadd_returns_boolean | ||
end | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't needed, right? Can we remove it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's needed, as it provides the way to set and read the |
||
attr_writer :namespace | ||
attr_reader :redis | ||
attr_accessor :warning | ||
|
Uh oh!
There was an error while loading. Please reload this page.