assignment_v2: import enterprise agent capacity policies/models/services and wiring
This commit is contained in:
@@ -78,6 +78,11 @@ module Redis::Alfred
|
||||
$alfred.with { |conn| conn.hmget(key, *fields) }
|
||||
end
|
||||
|
||||
# get all fields and values from redis hash
|
||||
def hgetall(key)
|
||||
$alfred.with { |conn| conn.hgetall(key) }
|
||||
end
|
||||
|
||||
# sorted set operations
|
||||
|
||||
# add score and value for a key
|
||||
@@ -100,5 +105,15 @@ module Redis::Alfred
|
||||
def zremrangebyscore(key, range_start, range_end)
|
||||
$alfred.with { |conn| conn.zremrangebyscore(key, range_start, range_end) }
|
||||
end
|
||||
|
||||
# transaction operations
|
||||
|
||||
def multi(&)
|
||||
$alfred.with { |conn| conn.multi(&) }
|
||||
end
|
||||
|
||||
def expire(key, expiry)
|
||||
$alfred.with { |conn| conn.expire(key, expiry) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user