赞
踩
1.Redis支持五种数据类型:
string(字符串):SET 和 GET
hash(哈希):HMSET, HGET
list(列表):LPUSH,LRANGE
set(集合):SADD,SMEMBERS
zset(sorted set:有序集合): ZADD,ZRANGE
2.设置过期时间
expire 设置生存时间(单位/秒)
pexpire 设置生存时间(单位/毫秒)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。