logo
  • 教程列表
  • SO官方文檔
  • 使用 Python 連線到 redis
    • 新增元素到列表
    • 將欄位新增到雜湊
    • 設定與 Redis 的連線
    • 建立交易
    • 直接執行命令
  1. StackOverflow 文件
  2. redis 教程
  3. 使用 Python 連線到 redis
  4. 直接執行命令

直接執行命令

Created: November-22, 2018

Redis-py 提供了 execute_command 方法來直接呼叫 Redis 操作。此功能可用於訪問 redis-py 客戶端中可能沒有支援介面的任何模組。例如,你可以使用 execute_command 列出載入到 Redis 伺服器中的所有模組:

r.execute_command('MODULE', 'LIST')
  • 建立交易

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明