This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/lua | |
-- Perl6 example -- | |
--[[ | |
my @xs := gather { | |
my $x = 0; | |
my $y = 1; | |
while True { | |
take $x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local redis = { | |
_VERSION = 'redis-lua 2.0.5-dev', | |
_DESCRIPTION = 'A Lua client library for the redis key value storage system.', | |
_COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', | |
} | |
-- The following line is used for backwards compatibility in order to keep the `Redis` | |
-- global module name. Using `Redis` is now deprecated so you should explicitly assign | |
-- the module to a local variable when requiring it: `local redis = require('redis')`. | |
Redis = redis |