struct

Agave::Commands::Command

Inherits Struct < Value < Object

Constructors

new(command : Array(Agave::Value), data : Hash(String, Array(Agave::Value) | Bool | Float64 | Hash(String, Agave::Value) | Int64 | Set(Agave::Value) | String | Time), expirations : Hash(String, Time), locks : Agave::LockPool)
Source

Class methods

call(command : Array(Value), data : Data, expirations : Expirations, locks : LockPool)
Source

Instance methods

call
Source
check_expired!(*keys : String, now : Time = Time.utc)
Source
command
Source
data
Source
expirations
Source
key_index
Source
lock(key : String, &)

EXPERIMENTAL Acquiring locks on keys is experimental and not guaranteed to work in a multithreaded environment

Source

Macros

register_command(command)
Source