Memcached调用程序
2014-03-02 10:01
239 查看
Memcached 主站 : http://www.danga.com/memcached/ php上的Memcached class 介紹: http://hk.php.net/memcache windwos版上用的Memcached 程序 :http://jehiah.cz/projects/memcached-win32/
pecl 給出的php extention : http://pecl4win.php.net/ext.php/php_memcache.dll
pecl 給出的php extention : http://pecl4win.php.net/ext.php/php_memcache.dll
<?php $memcache = new Memcache; $memcache->connect('localhost', 11211) or die ("Could not connect"); $version = $memcache->getVersion(); echo "Server's version: ".$version."<br/>\n"; $tmp_object = new stdClass; $tmp_object->str_attr = 'test'; $tmp_object->int_attr = 123; $memcache->set('key', $tmp_object, false, 10) or die ("Failed to save data at the server"); echo "Store data in the cache (data will expire in 10 seconds)<br/>\n"; $get_result = $memcache->get('key'); echo "Data from the cache:<br/>\n"; var_dump($get_result); ?>
相关文章推荐
- 在ASP.NET程序中存储和调用word文件
- asp.net中编写 windows 服务程序以及调用
- Qt打开外部程序和文件夹需要注意的细节(Qt调用VC写的动态库,VC需要用C的方式输出函数,否则MinGW32编译过程会报错)
- Android中Activity启动模式详解,可以控制程序按home键后进来还会调用一个自己不喜欢的界面
- Thinkphp5微信小程序获取用户信息接口调用笔记
- 宏定义的函数在程序中的调用
- 在小程序中修改上一个页面里data中的数据调用上一个页面的方法
- Windows API调用外部程序
- VS或VC调用matlab程序
- 网页调用服务程序
- C#调用外部程序
- android开发(26) 和其他应用交换数据方式一,使用intent指定自定义action调用其他程序里的activity,并获得其返回的结果
- 微信小程序 --- 出现脚本错误或者未正确调用 Page()
- 在System.Timers.Timer的处理程序中调用MessageBox.Show()弹出的确是非模态的
- 两个android程序间的相互调用(apk互调)
- 安卓在程序中调用系统照相机拍照后获得图片
- Enterprise Library3.1 使用数据访问模块时,调用Microsoft.Practices.EnterpriseLibrary.Data报出源文件与当前应用程序不一致和创建dataconfiguration的配置节处理程序出错
- Java调用外部程序常用算法和封装类
- SqlServer调用外部程序实现数据同步
- Android: 通过Runtime.getRuntime().exec调用底层Linux下的程序或脚本