Created
June 23, 2011 23:19
-
-
Save ipoval/1043872 to your computer and use it in GitHub Desktop.
redis_ipoval
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
# Docs | |
http://redis.io | |
http://www.infoq.com/presentations/newport-evolving-key-value-programming-model | |
http://rediscookbook.org | |
http://www.paperplanes.de/2010/2/16/a_collection_of_redis_use_cases.html | |
http://thechangelog.com/post/2801342864/episode-0-4-5-redis-with-salvatore-sanfilippo | |
http://www.slideshare.net/pauldix/indexing-thousands-of-writes-per-second-with-redis | |
http://ai.mee.nu/is_couchdb_the_anti-redis | |
http://kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis | |
http://antirez.com/post/take-advantage-of-redis-adding-it-to-your-stack.html | |
http://vimeo.com/7307342 | |
http://www.ustream.tv/recorded/7855635 | |
http://antirez.com/post/everything-about-redis-24 | |
http://groups.google.com/group/redis-db/browse_thread/thread/d444bc786689bde9 | |
# Installation | |
brew install redis | |
# caveats: | |
If this is your first install, automatically load on login with: | |
cp /usr/local/Cellar/redis/2.0.4/io.redis.redis-server.plist ~/Library/LaunchAgents | |
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist | |
If this is an upgrade and you already have the io.redis.redis-server.plist loaded: | |
launchctl unload -w ~/Library/LaunchAgents/io.redis.redis-server.plist | |
cp /usr/local/Cellar/redis/2.0.4/io.redis.redis-server.plist ~/Library/LaunchAgents | |
launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist | |
# | |
# Instructions | |
# | |
# To start redis manually: redis-server /usr/local/etc/redis.conf | |
# To access the server: redis-cli | |
# redis conf: https://github.com/antirez/redis/blob/557a74e56308325874c573e6dd2c6b228136de86/redis.conf | |
# | |
# Resque | |
# | |
https://gist.github.com/992680 | |
# | |
# Ruby client | |
# | |
http://redis-rb.keyvalue.org/v2.2.0/ | |
# class Redis | |
# module Errors | |
# class RedisError < RuntimeError | |
# @@used_codes = [] | |
# | |
# def self.status_code(code = nil) | |
# if code | |
# raise "Status code already in use: #{code}" if @@used_codes.include?(code) | |
# end | |
# define_method(:status_code) { code } | |
# end | |
# | |
# def self.error_message(message = nil) | |
# define_method(:error_message) { message } | |
# end | |
# end | |
# | |
# class ReplyFormatError < RedisError | |
# status_code 1 | |
# error_message 'Redis::ReplyFormatError' | |
# | |
# def initialize(options) | |
# @line = options[:line] | |
# end | |
# | |
# def message | |
# "#{error_message}:#{status_code} - #{@line}" | |
# end | |
# end | |
# end | |
# end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment