assignment_v2: import enterprise agent capacity policies/models/services and wiring

This commit is contained in:
Tanmay Sharma
2025-08-11 09:09:52 +05:30
parent 2ebde48d15
commit f4ddb47eac
15 changed files with 985 additions and 88 deletions
+15
View File
@@ -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