Home > php教程 > php手册 > body text

使用PHP来操作Cassandra

WBOY
Release: 2016-06-06 19:55:25
Original
1676 people have browsed it

使用Thrift来让PHP操作Cassandra无疑是一个首选方案,但是配置和操作比较麻烦。 我们可以使用一个php的模块 phpcassa 来操作Cassandra。 我们先插入一些数据: 下载phpcassa:http://github.com/downloads/hoan/phpcassa/phpcassa-0.1.zip 解压缩,放到项目

使用Thrift来让PHP操作Cassandra无疑是一个首选方案,但是配置和操作比较麻烦。

我们可以使用一个php的模块phpcassa来操作Cassandra。

 

我们先插入一些数据:

使用PHP来操作Cassandra

 

下载phpcassa:http://github.com/downloads/hoan/phpcassa/phpcassa-0.1.zip

解压缩,放到项目的include目录下。

写一个php文件,内容如下:

 使用PHP来操作Cassandra

 运行后结果如下:

Array ( [age] => 28 [first] => jiang [last] => yujie )

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!