php使用redis

开启的你redis

php安装好了reids的扩展

<?php
   // phpinfo();
    $redis = new Redis();
    $redis->connect('127.0.0.1',6379);
    $redis->set('test','hello redis');
    echo $redis->get('test');
?>

php使用redis

浏览器访问

php使用redis

相关文章:

  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2021-04-01
  • 2021-06-24
相关资源
相似解决方案