Redis implementation for Windows

Install Redis Server:

Download the redis client and server from below URL (download the latest 64 bit or 32 as applicable):

https://github.com/rgl/redis/downloads

Now after installing it start the redis service from the windows services list (service name will be redis).

Install Redis Interface Library:

http://pecl-win.googlecode.com/files/php_redis-2.1.3-5.3-ts.dll (for php 5.3)

https://github.com/nicolasff/phpredis/downloads ( php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip – for php 5.2)

From the above link download the dll file for redis and add it to extension directory of PHP.

Now update the php.ini file to point this new extension.

Implementation:

The implementation is written in PHP code, I have made the changes to

/base/meditab/med_db.php (Right now it has been done for MEM and MOS)

These changes make sure that if there is any update in any table the query for that table will be read from database else it will be from Redis cache.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s