module Brpoplpush::RedisScript

Interface to dealing with .lua files

@author Mikael Henriksson <mikael@mhenrixon.com>

Interface to dealing with .lua files

@author Mikael Henriksson <mikael@mhenrixon.com>

:nocov:

Constants

VERSION

:nocov:

Public Instance Methods

execute(script_name, conn, keys: [], argv: []) click to toggle source

Execute the given script_name

@param [Symbol] script_name the name of the lua script @param [Array<String>] keys script keys @param [Array<Object>] argv script arguments @param [Redis] conn the redis connection to use

@return value from script

# File lib/brpoplpush/redis_script.rb, line 72
def execute(script_name, conn, keys: [], argv: [])
  Client.execute(script_name, conn, keys: keys, argv: argv)
end
logger() click to toggle source

The current logger

@return [Logger] the configured logger

# File lib/brpoplpush/redis_script.rb, line 46
def logger
  config.logger
end
logger=(other) click to toggle source

Set a new logger

@param [Logger] other another logger

@return [Logger] the new logger

# File lib/brpoplpush/redis_script.rb, line 57
def logger=(other)
  config.logger = other
end
version() click to toggle source

The current gem version

@return [String] the current gem version

# File lib/brpoplpush/redis_script.rb, line 36
def version
  VERSION
end