Atlas 1/5

Text 1769 words 106 reading



1, the introduction of





















2. Install in Windows



Download address






redis-server.exe redis.conf

  • 1










Windows environment server installation Sphinx is installed as a Windows server using the Sphinx and Coreseek Chinese word partitioning core configuration uni.lib dictionary so that Sphinx runs itself when the system boots up
Redis -cli.exe -h 127.0.0.1 -p 6379

  • 1




















3. Use in PHP



Downloading DLL files
The official












Through a phpinfo ();

<? php phpinfo(); ? >

Check the Thread Safety TAB, which checks for Thread Safety,

If the value is enabled, it should be TS, otherwise it should be NTS.

  • 1
  • 2
  • 3
  • 4









extension=php_igbinary.dll

extension=php_redis.dll



The extension = "D: \ UPUPW_NP5. 6-1511 \ UPUPW_NP5 6 \ PHP5 \ ext \ php_igbinary DLL." "

The extension = "D: \ UPUPW_NP5. 6-1511 \ UPUPW_NP5 6 \ PHP5 \ ext \ php_redis DLL." "

  • 1
  • 2
  • 3
  • 4
  • 5















4. Use in PHP



<? php

$redis = new Redis();

$redis - > connect (127.0.0.1, 6379);

$redis->set('test','hello redis');

echo $redis->get('test');

? >

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6