redis-doc

Redis documentation source code for markdown and metadata files, conversion scripts, and so forth

  • 所有者: redis/redis-doc
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Redis documentation

Clients

All clients are listed in the clients.json file.
Each key in the JSON object represents a single client library.
For example:

"Rediska": {

  # A programming language should be specified.
  "language": "PHP",

  # If the project has a website of its own, put it here.
  # Otherwise, lose the "url" key.
  "url": "http://rediska.geometria-lab.net",

  # A URL pointing to the repository where users can
  # find the code.
  "repository": "http://github.com/Shumkov/Rediska",

  # A short, free-text description of the client.
  # Should be objective. The goal is to help users
  # choose the correct client they need.
  "description": "A PHP client",

  # An array of Twitter usernames for the authors
  # and maintainers of the library.
  "authors": ["shumkov"]

}

Commands

Redis commands are described in the commands.json file.

For each command there's a Markdown file with a complete, human-readable
description.
We process this Markdown to provide a better experience, so some things to take
into account:

  • Inside text, all commands should be written in all caps, in between
    backticks.
    For example: INCR.

  • You can use some magic keywords to name common elements in Redis.
    For example: @multi-bulk-reply.
    These keywords will get expanded and auto-linked to relevant parts of the
    documentation.

There should be at least two predefined sections: description and return value.
The return value section is marked using the @return keyword:

Returns all keys matching the given pattern.

@return

@multi-bulk-reply: all the keys that matched the pattern.

Styling guidelines

Please use the following formatting rules:

  • Wrap lines to 80 characters.
  • Start every sentence on a new line.

Luckily, this repository comes with an automated Markdown formatter.
To only reformat the files you have modified, first stage them using git add
(this makes sure that your changes won't be lost in case of an error), then run
the formatter:

$ rake format:cached

The formatter has the following dependencies:

  • Redcarpet
  • Nokogiri
  • The par tool

Installation of the Ruby gems:

gem install redcarpet nokogiri

Installation of par (OSX):

brew install par

Installation of par (Ubuntu):

sudo apt-get install par

Checking your work

You should check your changes using Make:

$ make

This will make sure that JSON and Markdown files compile and that all
text files have no typos.

You need to install a few Ruby gems and Aspell to run these checks.
The gems are listed in the .gems file. Install them with the
following command:

$ gem install $(sed -e 's/ -v /:/' .gems)

The spell checking exceptions should be added to ./wordlist.

主要指標

概覽
名稱與所有者redis/redis-doc
主編程語言Shell
編程語言Shell (語言數: 1)
平台
許可證Other
所有者活动
創建於2010-09-16 15:34:02
推送於2025-06-23 17:08:09
最后一次提交2025-06-23 10:08:09
發布數0
用户参与
星數2.3k
關注者數124
派生數1.7k
提交數4k
已啟用問題?
問題數511
打開的問題數58
拉請求數1684
打開的拉請求數59
關閉的拉請求數428
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?