string;
var user = RedisManager.Get<xxx>("user:" + token);
RedisManager.Set("module:" + token, list);
hash:
List<xxx> model = RedisManager.HashGetAll<se_variety_menu>("menu:" + type_id);
RedisManager.HashSet("menu:" + type_id, model, o => o.id, DateTime.Now.AddDays(1));
sortset:
var redis = RedisManager.SortedGetAll<RoomSortedModel>("room:" + build);
double temp;
RedisManager.SortedSetAdd("room:" + build, model, o => double.TryParse(o.floor, out temp) == true ? o.floor : "0", DateTime.Now.AddHours(1));
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:Redis 查询、写入 - Python技术站