scripts

package
v0.0.0-...-94c23ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2013 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Lua scripts for simpleq

Index

Constants

This section is empty.

Variables

View Source
var SafePullPipe = redis.NewScript(
	2,
	`local rem = redis.call("lrem", KEYS[1], -1, ARGV[1])
  if (rem ~= nil) and (rem > 0) then
    return redis.call("lpush", KEYS[2], ARGV[1])
  end
  return 0`)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL