You're viewing old version number 23. - Current version
Nginx and Redis - September 2014
http://www.saltwebsites.com/2012/install-redis-245-service-centos-6
http://eamann.com/tech/ludicrous-speed-wordpress-caching-with-redis
http://10up.com/blog/2012/eric-mann-joins-10up/
apt-get install redis-server
took only a few seconds to install
Online tutorial at http://try.redis.io
To access the command prompt client, type:
redis-cli
service redis-server stop
service redis-server start
/etc/init.d/redis-server restart
redis-server -t && service redis-server reload
set cleveland "browns"
get cleveland
delete cleveland
set counter 0
incr counter
get counter
setnx something "whatever" (sets a key only if it does not already exist)
A list is a series of ordered values. Some of the important commands for interacting with lists are RPUSH, LPUSH, LLEN, LRANGE, LPOP, and RPOP. You can immediately begin working with a key as a list, as long as it doesn't already exist as a different type.
http://redis.io/topics/twitter-clone
demo: http://retwis.redis.io
source: https://code.google.com/p/redis/downloads/list
Perl
http://search.cpan.org/dist/Redis/
http://search.cpan.org/~dams/Redis-1.975/lib/Redis.pm
Sep 25, 2014 update: - executed perl -MCPAN -e 'install Redis'
and installed DAMS/Redis-1.975
http://search.cpan.org/~dpavlin/Redis-0.0801/lib/Redis.pm
https://github.com/PerlRedis/perl-redis
http://stackoverflow.com/questions/17224585/using-redis-pm-pipeline-in-perl
PhP
For MySQL
sudo apt-get install php5-mysql
For PhP
sudo apt-get install php5-fpm
Didn't do anything because apparently, it was already installed, but I don't remember when I did that, unless something else installed it. I assume the 'F' part is for FastCGI, and when I installed FastCGI, I guess it already installed this package.
Follow the instructions given at the above Digital Ocean web page for the PhP section.
#blogging - #redis - #cache - #scalability
From JR's : articles
219 words - 2184 chars
- 1 min read
created on
updated on
- #
source
- versions
Related articles
Nginx and Redis - Fall 2014 - Oct 17, 2014