Installing Redis 2.8 Master/Slave on Debian Wheezy

First activate the dotdeb repository: echo "deb wheezy all" > /etc/apt/sources.list.d/dotdeb.list echo "deb-src wheezy all" >> /etc/apt/sources.list.d/dotdeb.list cd /tmp wget apt-key add dotdeb.gpg apt-get update apt-get install redis-server Here are a few lines that you might want to have a look at in /etc/redis/redis.conf: If redis is supposed to be reachable only […]

Using Memcached with Perl

First of all, install the Memcached for Perl: perl -MCPAN -e shell install Cache::Memcached Here is an example script: #!/usr/bin/perl use Cache::Memcached; my $cache =  new Cache::Memcached {     'servers' => [‘’],  }; # Save (set) something in your cache: $cache->set("test", "test123"); # Get the value from Memcached my $value = $cache->get("test"); 

Emptying Caches on PowerDNS Server and Recursor

PDNS Recursor: Emptying the cache for a specific domain: rec_control wipe-cache Emptying the cache overall: rec_control wipe-cache Dump the current cache into a file: rec_control dump-cache /tmp/dns-cache PDNS Server: Show current cache statistics: pdns_control counts Delete the cache for a specific domain: pdns_control purge Delete the cache overall: pdns_control purge