zoukankan      html  css  js  c++  java
  • Library:python-memcached on Windows

    1 install memcached 1.4.4 Windows 32-bit 

    2 cd into the base file and type memcached.exe -d install to install the service

    3 type memcached.exe -d start to start the service

    4 install python-memcached library

    5 cd into the dir and type python memcache.py output should be like this(or, there will be some errors, orz...):

    (o) D:ProgramDataVoLibsite-packages>python memcache.py
    Testing docstrings...
    Running tests:

    Testing set/get {'a_string': some random string} ... OK
    Testing set/get {'an_integer': 42 (<type 'int'>)} ... OK
    Testing set/get {'long': 1073741824 (<type 'long'>)} ... OK
    Testing delete ... OK
    Checking results of delete ...
    OK
    Testing get_multi ... {'an_integer': 42, 'a_string': 'some random string'}
    Testing get(unknown value) ... None (<type 'NoneType'>)
    Testing set/get {'foostruct': A FooStruct (<class '__main__.FooStruct'>)} ... OK

    Testing incr ... OK
    Testing decr ... OK
    Testing sending spaces... OK
    Testing sending control characters... OK
    Testing using insanely long key... OK
    OK
    Testing sending a unicode-string key... OK OK OK
    Testing using a value larger than the memcached value limit...
    NOTE: "MemCached: while expecting[...]" is normal...
    MemCached: while expecting 'STORED', got unexpected response 'SERVER_ERROR objec
    t too large for cache'
    OK OK
    Testing set_multi() with no memcacheds running OK
    Testing delete_multi() with no memcacheds running OK

  • 相关阅读:
    异常处理 UDP通信
    网络编程 socket套接字 半连接池 通信循环 粘包问题 struct模块 Mac报错
    网络编程 osi七层协议 Time模块补充知识 TCP协议 三次握手 四次挥手
    面向对象 组合 继承
    流式布局
    小程序的瀑布流式布局
    微信小程序的短信接口
    如何高效的编程!
    爱心动画
    em、rpx和px的换算
  • 原文地址:https://www.cnblogs.com/MrWho/p/3985887.html
Copyright © 2011-2022 走看看