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 res = {}; | |
for i=1,#KEYS do | |
res[i] = redis.call("hgetall", KEYS[i]) | |
end | |
return res; |
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
r=Redis.new | |
#=> #<Redis client v3.0.7 for redis://127.0.0.1:6379/0> | |
s=r.pipelined { ['foo', 'bar', 'baz', 'myhash'].each{|f| r.hgetall(f) } } | |
#=> [{}, {}, {}, {"field1"=>"Hello", "field2"=>"World"}] |
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
[~/code/redis/src (unstable*)]% ./redis-trib.rb call 127.0.0.1:7001 info memory | egrep 'used_memory_human:' | |
used_memory_human:76.73M | |
used_memory_human:72.71M | |
used_memory_human:72.69M |
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
#!/bin/bash | |
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" == "help" ]; then | |
echo "Usage: $0 [requests] [keyspacelen]" | |
echo | |
echo "requests - Total number of requests (default 1000000)" | |
echo "keyspacelen - Keyspace from which a random number will be chosen" | |
echo " (default 9999999)" | |
echo | |
echo "Wrapper around redis-benchmark to quickly fill a Redis instance with random data." |
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
# Maintainer: Guten Ye | |
# Contributor: Jan-Erik Rediger <badboy at archlinux dot us> | |
pkgname="bats-git" | |
pkgver=v0.3.1.17.g2476770 | |
pkgrel=1 | |
pkgdesc="Bash Automated Testing System" | |
arch=("any") | |
url="https://github.com/sstephenson/bats" | |
license=("MIT") |
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
% go build -o redis-trib && ./redis-trib each 127.0.0.1:7001 info memory | |
7bd6d759fb11983e63925055ad27eaab45ee0b24 [127.0.0.1:7003]: info [memory] | |
# Memory | |
used_memory:76216048 | |
used_memory_human:72.69M | |
used_memory_rss:87629824 | |
used_memory_peak:78255392 | |
used_memory_peak_human:74.63M | |
used_memory_lua:33792 | |
mem_fragmentation_ratio:1.15 |
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
% go build -o redis-trib && ./redis-trib check 127.0.0.1:7001 | |
635607ddd921c61e2b6afa425a60b2ad206d1645 [127.0.0.1:7001] master #slots: 5452 | |
3d4aeeec336283baa823b7070e4c4ae3eb8ad971 [127.0.0.1:7011] slave #slots: 0 | |
e3a0fde219b53dafa0e7904b47251b38e3c35513 [127.0.0.1:7002] master #slots: 5463 | |
7bd6d759fb11983e63925055ad27eaab45ee0b24 [127.0.0.1:7003] master #slots: 5469 | |
05ccb0151fbef260d2e5931980b28b21e3bb96c9 [127.0.0.1:7012] master #slots: 0 | |
[OK] All 16384 slots covered. |
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/env ruby | |
# encoding: utf-8 | |
require 'optparse' | |
require 'redic' | |
options = { | |
port: 6379, | |
host: '127.0.0.1', | |
match: nil, |
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
127.0.0.1:6379> eval "redis.call('set', 'foo', 'bar'); f(); redis.call('set', 'foo', '2');" 0 | |
(error) ERR Error running script (call to f_8e450ff4aa4925d318b9953547a547a288d78d38): @enable_strict_lua:14: user_script:1: Script attempted to access unexisting global variable 'f' | |
127.0.0.1:6379> get foo | |
"bar" |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> |
OlderNewer