Skip to content

Commit 0b95fd7

Browse files
committed
Init
0 parents  commit 0b95fd7

File tree

188 files changed

+45644
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+45644
-0
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
doctests/* @dmaier-redislabs

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ['https://uptrace.dev/sponsor']

.github/ISSUE_TEMPLATE/bug_report.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
Issue tracker is used for reporting bugs and discussing new features. Please use
10+
[stackoverflow](https://stackoverflow.com) for supporting issues.
11+
12+
<!--- Provide a general summary of the issue in the Title above -->
13+
14+
## Expected Behavior
15+
16+
<!--- Tell us what should happen -->
17+
18+
## Current Behavior
19+
20+
<!--- Tell us what happens instead of the expected behavior -->
21+
22+
## Possible Solution
23+
24+
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
25+
26+
## Steps to Reproduce
27+
28+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
29+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
30+
31+
1.
32+
2.
33+
3.
34+
4.
35+
36+
## Context (Environment)
37+
38+
<!--- How has this issue affected you? What are you trying to accomplish? -->
39+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
40+
41+
<!--- Provide a general summary of the issue in the Title above -->
42+
43+
## Detailed Description
44+
45+
<!--- Provide a detailed description of the change or addition you are proposing -->
46+
47+
## Possible Implementation
48+
49+
<!--- Not obligatory, but suggest an idea for implementing addition or change -->

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Discussions
4+
url: https://github.com/go-redis/redis/discussions
5+
about: Ask a question via GitHub Discussions

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
- package-ecosystem: github-actions
8+
directory: /
9+
schedule:
10+
interval: weekly

.github/release-drafter-config.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name-template: '$NEXT_MINOR_VERSION'
2+
tag-template: 'v$NEXT_MINOR_VERSION'
3+
autolabeler:
4+
- label: 'maintenance'
5+
files:
6+
- '*.md'
7+
- '.github/*'
8+
- label: 'bug'
9+
branch:
10+
- '/bug-.+'
11+
- label: 'maintenance'
12+
branch:
13+
- '/maintenance-.+'
14+
- label: 'feature'
15+
branch:
16+
- '/feature-.+'
17+
categories:
18+
- title: 'Breaking Changes'
19+
labels:
20+
- 'breakingchange'
21+
- title: '🧪 Experimental Features'
22+
labels:
23+
- 'experimental'
24+
- title: '🚀 New Features'
25+
labels:
26+
- 'feature'
27+
- 'enhancement'
28+
- title: '🐛 Bug Fixes'
29+
labels:
30+
- 'fix'
31+
- 'bugfix'
32+
- 'bug'
33+
- 'BUG'
34+
- title: '🧰 Maintenance'
35+
label: 'maintenance'
36+
change-template: '- $TITLE (#$NUMBER)'
37+
exclude-labels:
38+
- 'skip-changelog'
39+
template: |
40+
# Changes
41+
42+
$CHANGES
43+
44+
## Contributors
45+
We'd like to thank all the contributors who worked on this release!
46+
47+
$CONTRIBUTORS
48+

.github/spellcheck-settings.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
matrix:
2+
- name: Markdown
3+
expect_match: false
4+
apsell:
5+
lang: en
6+
d: en_US
7+
ignore-case: true
8+
dictionary:
9+
wordlists:
10+
- .github/wordlist.txt
11+
output: wordlist.dic
12+
pipeline:
13+
- pyspelling.filters.markdown:
14+
markdown_extensions:
15+
- markdown.extensions.extra:
16+
- pyspelling.filters.html:
17+
comments: false
18+
attributes:
19+
- alt
20+
ignores:
21+
- ':matches(code, pre)'
22+
- code
23+
- pre
24+
- blockquote
25+
- img
26+
sources:
27+
- 'README.md'
28+
- 'FAQ.md'
29+
- 'docs/**'

.github/wordlist.txt

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
ACLs
2+
autoload
3+
autoloader
4+
autoloading
5+
analytics
6+
Autoloading
7+
backend
8+
backends
9+
behaviour
10+
CAS
11+
ClickHouse
12+
config
13+
customizable
14+
Customizable
15+
dataset
16+
de
17+
DisableIdentity
18+
ElastiCache
19+
extensibility
20+
FPM
21+
Golang
22+
IANA
23+
keyspace
24+
keyspaces
25+
Kvrocks
26+
localhost
27+
Lua
28+
MSSQL
29+
namespace
30+
NoSQL
31+
ORM
32+
Packagist
33+
PhpRedis
34+
pipelining
35+
pluggable
36+
Predis
37+
PSR
38+
Quickstart
39+
README
40+
rebalanced
41+
rebalancing
42+
redis
43+
Redis
44+
RocksDB
45+
runtime
46+
SHA
47+
sharding
48+
SETNAME
49+
SSL
50+
struct
51+
stunnel
52+
TCP
53+
TLS
54+
uri
55+
URI
56+
url
57+
variadic
58+
RedisStack
59+
RedisGears
60+
RedisTimeseries

.github/workflows/build.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [master, v9]
6+
pull_request:
7+
branches: [master, v9]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
name: build
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
go-version: [1.19.x, 1.20.x, 1.21.x]
20+
21+
services:
22+
redis:
23+
image: redis/redis-stack-server:edge
24+
options: >-
25+
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
26+
ports:
27+
- 6379:6379
28+
29+
steps:
30+
- name: Set up ${{ matrix.go-version }}
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: ${{ matrix.go-version }}
34+
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
38+
- name: Test
39+
run: make test

.github/workflows/doctests.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Documentation Tests
2+
3+
on:
4+
push:
5+
branches: [master, examples]
6+
pull_request:
7+
branches: [master, examples]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
doctests:
14+
name: doctests
15+
runs-on: ubuntu-latest
16+
17+
services:
18+
redis-stack:
19+
image: redis/redis-stack-server:latest
20+
options: >-
21+
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
22+
ports:
23+
- 6379:6379
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
go-version: [ "1.18", "1.19", "1.20", "1.21" ]
29+
30+
steps:
31+
- name: Set up ${{ matrix.go-version }}
32+
uses: actions/setup-go@v5
33+
with:
34+
go-version: ${{ matrix.go-version }}
35+
36+
- name: Checkout code
37+
uses: actions/checkout@v4
38+
39+
- name: Test doc examples
40+
working-directory: ./doctests
41+
run: go test

.github/workflows/golangci-lint.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: golangci-lint
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- master
9+
- main
10+
- v9
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
golangci:
18+
permissions:
19+
contents: read # for actions/checkout to fetch code
20+
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
21+
name: lint
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: golangci-lint
26+
uses: golangci/golangci-lint-action@v4

.github/workflows/release-drafter.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
permissions: {}
10+
jobs:
11+
update_release_draft:
12+
permissions:
13+
pull-requests: write # to add label to PR (release-drafter/release-drafter)
14+
contents: write # to create a github release (release-drafter/release-drafter)
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
# Drafts your next Release notes as Pull Requests are merged into "master"
19+
- uses: release-drafter/release-drafter@v6
20+
with:
21+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
22+
config-name: release-drafter-config.yml
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/spellcheck.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: spellcheck
2+
on:
3+
pull_request:
4+
jobs:
5+
check-spelling:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v4
10+
- name: Check Spelling
11+
uses: rojopolis/[email protected]
12+
with:
13+
config_path: .github/spellcheck-settings.yml
14+
task_name: Markdown

.github/workflows/stale-issues.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Close stale issues"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
permissions: {}
7+
jobs:
8+
stale:
9+
permissions:
10+
issues: write # to close stale issues (actions/stale)
11+
pull-requests: write # to close stale PRs (actions/stale)
12+
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-issue-message: 'This issue is marked stale. It will be closed in 30 days if it is not updated.'
19+
stale-pr-message: 'This pull request is marked stale. It will be closed in 30 days if it is not updated.'
20+
days-before-stale: 365
21+
days-before-close: 30
22+
stale-issue-label: "Stale"
23+
stale-pr-label: "Stale"
24+
operations-per-run: 10
25+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)