单项选择题
若要使用pythonr操作memcache,需要导入pymemcache中的Client类,以下导入命令正确的是()。
A.pip install pymemcache
B.from pymemcache.client.base import Client
C.from pymemcache.client import Client
D.from pymemcache import Client
E.yum -y install pymemcache
点击查看答案&解析
相关考题
-
单项选择题
将关键字为’customerId’,数据为’201901001’的键值对存入到memcache中,正确的命令是()。
A.set customerId 0609201901001
B.set customerId 201901001
C.replace customerId 009201901002
D.replace customerId 201901002 -
单项选择题
在memcache中,以下哪项是Slab Allocator的缺点?()
A.会增加CPU的负担
B.需要增加内存的容量
C.会提高内存的利用率
D.会产生许多的内存碎片
E.会造成一定的内存浪费 -
单项选择题
memcache中,当缓存中不存在键时,()命令会向缓存中增加一个键值对,否则您将获得NOT_STORED 响应。
A.add
B.set
C.replace
D.append
