Class: RedisRds::String
Direct Known Subclasses
Mutex
Instance Attribute Summary
Attributes inherited from Object
#redis_key
Instance Method Summary
collapse
Methods inherited from Object
configure, #connection, connection, #delete, #dump, #exists?, #expire, #expireat, flushdb, #initialize, #namespace, #persist, #pttl, #ttl, #type
Instance Method Details
#append(suffix) ⇒ Object
15
16
17
|
# File 'lib/redis_rds/string.rb', line 15
def append(suffix)
return connection.append(@redis_key, suffix)
end
|
35
36
37
|
# File 'lib/redis_rds/string.rb', line 35
def decr
return connection.decr(@redis_key)
end
|
#decrby(decrement) ⇒ Object
39
40
41
|
# File 'lib/redis_rds/string.rb', line 39
def decrby(decrement)
return connection.decrby(@redis_key, decrement)
end
|
3
4
5
|
# File 'lib/redis_rds/string.rb', line 3
def get
return connection.get(@redis_key)
end
|
19
20
21
|
# File 'lib/redis_rds/string.rb', line 19
def incr
return connection.incr(@redis_key)
end
|
#incrby(increment) ⇒ Object
23
24
25
|
# File 'lib/redis_rds/string.rb', line 23
def incrby(increment)
return connection.incrby(@redis_key, increment)
end
|
27
28
29
|
# File 'lib/redis_rds/string.rb', line 27
def length
return connection.strlen(@redis_key)
end
|
#set(value) ⇒ Object
7
8
9
|
# File 'lib/redis_rds/string.rb', line 7
def set(value)
return connection.set(@redis_key, value)
end
|
#setex(value, expiry) ⇒ Object
11
12
13
|
# File 'lib/redis_rds/string.rb', line 11
def setex(value, expiry)
return connection.setex(@redis_key, expiry, value)
end
|
#setnx(value) ⇒ Object
31
32
33
|
# File 'lib/redis_rds/string.rb', line 31
def setnx(value)
return connection.setnx(@redis_key, value)
end
|