abstract struct Agave::Commands::Command

Direct Known Subclasses

Defined in:

commands.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.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) #

[View source]

Class Method Detail

def self.call(command : Array(Value), data : Data, expirations : Expirations, locks : LockPool) #

[View source]

Instance Method Detail

abstract def call #

[View source]
def check_expired!(*keys : String, now : Time = Time.utc) #

[View source]
def command : Array(Value) #

[View source]
def data : Data #

[View source]
def expirations : Expirations #

[View source]
def key #

[View source]
def key_index #

[View source]
def lock(key : String, &) #

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


[View source]

Macro Detail

macro register_command(command) #

[View source]