logo
  • 教程列表
  • SO官方文檔
  • StackExchange.Redis 入門
    • 基本用法
    • 在應用程式中重用多路複用器
    • 配置選項
  1. StackOverflow 文件
  2. StackExchange.Redis 教程
  3. StackExchange.Redis 入門
  4. 基本用法

基本用法

Created: November-22, 2018

using StackExchange.Redis;

// ...

// connect to the server
ConnectionMultiplexer connection = ConnectionMultiplexer.Connect("localhost");

// select a database (by default, DB = 0)
IDatabase db = connection.GetDatabase();

// run a command, in this case a GET
RedisValue myVal = db.StringGet("mykey");
  • 在應用程式中重用多路複用器
  • StackExchange.Redis 入門

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明