logo
  • 教程列表
  • SO官方文档
  • 键和值
    • 设置值
    • 设置并获取 int
  1. StackOverflow 文档
  2. StackExchange.Redis 教程
  3. 键和值
  4. 设置并获取 int

设置并获取 int

Created: November-22, 2018

db.StringSet("key", 11021);
int i = (int)db.StringGet("key");

或者使用 StackExchange.Redis.Extensions :

db.Add("key", 11021);
int i = db.Get<int>("key");
  • 设置值

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明