Class: Kredis::Types::Flag
Instance Attribute Summary
Attributes inherited from Proxying
#key, #proxy, #redis
Instance Method Summary
collapse
Methods inherited from Proxying
#initialize, proxying
Instance Method Details
#mark(expires_in: nil) ⇒ Object
4
5
6
|
# File 'lib/kredis/types/flag.rb', line 4
def mark(expires_in: nil)
set 1, ex: expires_in
end
|
#marked? ⇒ Boolean
8
9
10
|
# File 'lib/kredis/types/flag.rb', line 8
def marked?
exists?
end
|
#remove ⇒ Object
12
13
14
|
# File 'lib/kredis/types/flag.rb', line 12
def remove
del
end
|