php-redis客户端使用方法
2011-09-21 16:41
549 查看
首先配置好环境,这里就不多说了redis服务端,以及redis的PHP扩展包;
View Code
来源地址
View Code
<?php require 'redis.php'; require 'redis_pool.php'; require 'redis_peer.php'; class note extends redis_peer {} $note = new note(); # Create note, primary key is generated automatically $id = $note->insert( array('title' => 'Hello', 'body' => 'world!') ); # Update note $id = $note->update( $id, array('body' => 'wwwwworld!') ); # Get some note by primary key $note_data = $note->get_by_id( $id ); # Delete note $note->delete( $id );
来源地址
相关文章推荐
- win10安装redis及redis客户端使用方法
- 使用PHP判断Web客户端访问设备类型(手机、平板、PC)的方法
- PHP使用redis消息队列发布微博的方法示例
- PHP使用redis实现统计缓存mysql压力的方法
- redis在linux上部署,Redis服务器搭建/配置/及Jedis客户端的使用方法(java语言)
- Redis服务器搭建/配置/及Jedis客户端的使用方法
- php使用redis有序列表zadd批量添加的方法
- php redis 的使用方法
- 关于php语言限制,使用http协议不能及时返回客户端方法解决方案
- php redis 的使用方法
- PHP使用Redis实现防止大并发下二次写入的方法
- PHP使用redis实现统计缓存mysql压力的方法
- phpredis使用方法
- 安卓客户端使用Json登陆php服务器的简单方法
- phpredis中文手册(使用方法)——《redis中文手册》 php版
- Redis服务器搭建/配置/及Jedis客户端的使用方法
- redis服务端及php客户端安装方法
- 使用原生PHP编写Redis扩展(客户端)介绍
- Redis服务器搭建/配置/及Jedis客户端的使用方法
- Redis服务器搭建/配置/及Jedis客户端的使用方法