Posts

Showing posts with the label cache

Redis: The Basics

Image
What is Redis ? - Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker - Remote Dictionary Server Installation For Mac OS X: 1. Install XCode Developer Tools 2. Download the stable release on Redis official site: http://redis.io/download 3. Run the ff. command: wget http://download.redis.io/releases/redis-3.2.0.tar.gz tar xzf redis-3.2.0.tar.gz cd redis-3.2.0 # install and run globally (/usr/local/bin) make install redis-server # install and run locally make cd src && ./redis-server # install on another location make install /opt/local/bin For Ubuntu: 1. Run the ff. command: sudo apt-get install redis-server # run redis-server Data Types List: - collection of string elements, sorted according to the order of insertion. ex. 8, 9, 1, 2, 3 - implemented using a linked list, not using an array - insertion of new elements to head or tail is at constant time regardless of the length of the list ...

Enable OPCache on Ubuntu: Alternative to APC Cache

If you are using PHP 5.5, it is not supported by APC Cache. For reference, see PHP Bug #65731 PHP 5.5 comes with it's own opcode cache which can be enabled with the following steps: 1. Enable opcache in php.ini sudo nano /etc/php5/apache2/php.ini Look for the line: ;opcache.enable=0 And replace with: opcache.enable=1 2. Enable the php mod sudo php5enmod opcache sudo service apache2 restart If you are using PHP lower than 5.5, then you can still use APC. Just run this line in the terminal to install APC. sudo apt-get install php-apc

Install APC for PHP 5.5x in WampServer

Download APCu for PHP 5.5x http://pecl.php.net/package/APCu/4.0.6/windows Extract and copy php_apcu.dll to PHP extension directory C:\wamp\bin\php\php5.5.12\ext Enable APC extension in php.ini extension=php_apcu.dll Restart Wampserver