Install phpredis in windows, windowsphpredis

Source: Internet
Author: User

Install phpredis in windows, windowsphpredis

Redis:

Redis is a key-value storage system. Similar to Memcached, Memcached supports more storage value types, including string, list, set, and zset) and hash (hash type ). These data types support push/pop, add/remove, Intersection Set and difference set, and more abundant operations, and these operations are atomic. On this basis, redis supports sorting in different ways. Like memcached, data is cached in the memory to ensure efficiency. The difference is that redis periodically writes the updated data to the disk or writes the modification operation to the append record file, and on this basis implements master-slave (master-slave) synchronization.


1. Download:

Php_redis.dll: Example

Click (here) to fold or open

  1. <? Php
  2. Phpinfo ();
  3. ?>
3. The installation module places the php_redis.dll module in the php installation directory/ext/in php. ini. extension = php_bz2.dll is added before extension = php_redis.dll4. After testing and restarting apache, access redis. php.

Click (here) to fold or open

  1. <? Php
  2. Phpinfo ();
  3. $ Redis = new Redis ();
  4. $ Redis-> connect ("192.168.60.6", "6379 ");
  5. $ Redis-> set ("test", "Hello World ");
  6. Echo $ redis-> get ("test ");
  7. ?>
Test Results

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.