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

  • 關於本站
  • 免責聲明