ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

module documentation

Undocumented

Class RedisRateLimitStore Share sliding-window quotas using a single-key atomic Redis script.
Constant _HIT Undocumented

Undocumented

Value
'''
local time = redis.call(\'TIME\')
local now = tonumber(time[1]) * 1000000 + tonumber(time[2])
local window = tonumber(ARGV[2]) * 1000000
redis.call(\'ZREMRANGEBYSCORE\', KEYS[1], \'-inf\', now - window)
if redis.call(\'ZCARD\', KEYS[1]) >= tonumber(ARGV[1]) then return 0 end
redis.call(\'ZADD\', KEYS[1], now, ARGV[3])
...