cache


Installing Redis 2.8 Master/Slave on Debian Wheezy

First activate the dotdeb repository: echo "deb http://packages.dotdeb.org wheezy all" > /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy all" >> /etc/apt/sources.list.d/dotdeb.list cd /tmp wget http://www.dotdeb.org/dotdeb.gpg 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' => [‘127.0.0.1:11211’],  }; # 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 example.net Emptying the cache overall: rec_control wipe-cache example.net 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 example.net Delete the cache overall: pdns_control purge