lib/simple_throttle.rb
# Evaluate and execute a Lua script on the redis server that returns the number calls currently being tracked.
# If push is set to true then a new item will be added to the list.
Evaluate and execute a Lua script on the redis server that returns the number calls currently being tracked.
If push is set to true then a new item will be added to the list.
Evaluate and execute a Lua script on the redis server that returns the number calls currently being tracked . If push is set to true then a new item will be added to the list .
def current_size(push)
    push_arg = (push ? 1 : 0)
    time_ms = (Time.now.to_f * 1000).round
    ttl_ms = (ttl * 1000).ceil
    self.class.send(:execute_lua_script, redis: redis_client, keys: [redis_key], args: [limit, ttl_ms, time_ms, push_arg])
  end
def current_size ( push ) push_arg = ( push ? 1 : 0 ) time_ms = ( Time . now . to_f * 1000 ) . round ttl_ms = ( ttl * 1000 ) . ceil self . class . send ( :execute_lua_script , redis : redis_client , keys : [ redis_key ] , args : [ limit , ttl_ms , time_ms , push_arg ] ) end
Evaluate and execute a Lua script on the redis server that returns the number calls currently being tracked.
Evaluate and execute a Lua script on the redis server that returns the number calls currently being tracked .
push
<not_specific>