摘要: root@iZ2ze6u6go4pqpc56auxifZ redis]# redis-cli 127.0.0.1:6379> 阅读全文
posted @ 2019-12-17 11:36 大熊童鞋 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 安装redis后,先引入 use think\cache\driver\Redis;控制器中写 //redis参数 $options= [ 'host' => '127.0.0.1', 'port' => 6379, 'password' => 'xxxxx', 'select' => 0, 'ti 阅读全文
posted @ 2019-12-17 10:47 大熊童鞋 阅读(1337) 评论(0) 推荐(0) 编辑
摘要: wget http://pecl.php.net/get/redis-4.2.0.tgz tar -zxvf redis-4.2.0.tgz cd redis-4.2.0 /usr/local/php5.6/bin/phpize ./configure --with-php-config=/usr/ 阅读全文
posted @ 2019-12-17 10:26 大熊童鞋 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 一、->用来引用一个类的属性(变量)、方法(函数) 可以把->理解成调用的意思 <?php Class a{ Var $id; Function add(){ $this->id=”test”; echo “abc”; } } $b = new a; $b->add(); //调用类a中的add() 阅读全文
posted @ 2019-12-17 10:01 大熊童鞋 阅读(169) 评论(0) 推荐(0) 编辑