Skip to content

Commit

Permalink
Switching License to BSD 3-Clause License
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitbbhayani committed Jan 20, 2025
1 parent 61085e1 commit 1fe6fa3
Show file tree
Hide file tree
Showing 324 changed files with 843 additions and 5,511 deletions.
689 changes: 28 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ format: ## format the code using go fmt

GOLANGCI_LINT_VERSION := 1.60.1

lint: check-golangci-lint ## run golangci-lint
lint:
gofmt -w .
golangci-lint run ./...

check-golangci-lint:
Expand Down Expand Up @@ -109,3 +110,6 @@ release: ## build and push the Docker image to Docker Hub with the latest tag an
push-binary-remote:
$(MAKE) build
scp -i ${SSH_PEM_PATH} ./dicedb ubuntu@${REMOTE_HOST}:.

add-license-notice:
./add_license_notice.sh
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DiceDB
<a href="https://dicedb.io">![slatedb.io](https://img.shields.io/badge/site-dicedb.io-00A1FF?style=flat-square)</a>
<a href="https://dicedb.io/get-started/installation/">![Docs](https://img.shields.io/badge/docs-00A1FF?style=flat-square)</a>
<a target="_blank" href="https://discord.gg/6r8uXWtXh7"><img src="https://dcbadge.limes.pink/api/server/6r8uXWtXh7?style=flat" alt="discord community" /></a>
[![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](LICENSE)

DiceDB is an open source, redis-compliant, reactive, scalable, highly available, unified cache optimized for modern hardware.

Expand Down Expand Up @@ -196,7 +197,12 @@ Contributors can join the [Discord Server](https://discord.gg/6r8uXWtXh7) for qu
<img src = "https://contrib.rocks/image?repo=dicedb/dice"/>
</a>

## License

This project is licensed under the BSD 3-Clause License. See the [LICENSE](LICENSE) file for details.

## Troubleshoot

### Forcefully killing the process

```
Expand Down
18 changes: 18 additions & 0 deletions add_license_notice.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

LICENSE_NOTICE="// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information."

# Find all Go files and add the notice if not already present
find . -type f -name "*.go" | while read -r FILE; do
# Check if the file already contains the license notice
if ! grep -qF "$LICENSE_NOTICE" "$FILE"; then
# Add the license notice at the top of the file
{ echo "$LICENSE_NOTICE"; echo ""; cat "$FILE"; } > temp_file && mv temp_file "$FILE"
echo "Added license notice to $FILE"
else
echo "License notice already present in $FILE"
fi
done

echo "Finished adding license notice to all Go files."
17 changes: 2 additions & 15 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package config

Expand Down
17 changes: 2 additions & 15 deletions config/parser.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package config

Expand Down
17 changes: 2 additions & 15 deletions config/validator.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package config

Expand Down
2 changes: 1 addition & 1 deletion docs/public/funding.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"repositoryUrl": {
"url": "https://dicedb.io"
},
"licenses": ["AGPL-3.0"],
"licenses": ["BSD 3-Clause License"],
"tags": ["database", "high-performance", "key-value-store"]
}
],
Expand Down
18 changes: 9 additions & 9 deletions docs/src/content/blog/dicedb-is-open-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: "DiceDB is now open source"
description: "Since the inception of DiceDB, our vision has always been rooted in
building a high-performance caching backbone for modern architecture. Today, we are thrilled to announce that DiceDB
is now open source under the GNU Affero General Public License (AGPL) 3.0. This marks a significant milestone in our journey - one that reflects both our technical clarity and our commitment to the open source ethos."
is now open source under the BSD 3-Clause License. This marks a significant milestone in our journey - one that reflects both our technical clarity and our commitment to the open source ethos."
published_at: 2024-12-14
author: arpit
---

Since the inception of DiceDB, [our](/team) vision has always been rooted in
building a high-performance caching backbone for modern architecture. Today, we are thrilled to announce that DiceDB
is now open source under the [GNU Affero General Public License (AGPL) 3.0](https://github.com/dicedb/dice?tab=AGPL-3.0-1-ov-file#readme).
is now open source under the [BSD 3-Clause License](https://github.com/DiceDB/dice/blob/master/LICENSE).
This marks a significant milestone in our journey - one that reflects both our technical clarity and our commitment to the open source ethos.

## Why we switched
Expand All @@ -18,34 +18,34 @@ In the early days of DiceDB, we explored a [Business Source License (BSL)](https
to balance monetization and community engagement. However, as our product evolved,
so did our understanding of its core mission. By streamlining our
technical and business priorities, we realized that the
AGPL 3.0 license better aligns with where we are headed — an open,
BSD 3-Clause License better aligns with where we are headed — an open,
collaborative ecosystem for the future of caching infrastructure.

As engineers, we believe in removing artificial barriers that gatekeep innovation.
The AGPL's principles align deeply with our philosophy — software should be free
The BSD 3-Clause License's principles align deeply with our philosophy — software should be free
to use, inspect, and improve. By adopting this license, we're doubling down
on accessibility and transparency. We believe that great infrastructure
shouldn't be proprietary; it should be a shared foundation for the ecosystem to build upon.

The AGPL license removes ambiguity around our open source intent, signaling
The BSD 3-Clause License removes ambiguity around our open source intent, signaling
to developers and organizations alike that DiceDB is here to stay as a
truly open technology. This clarity encourages collaboration, enabling developers and engineers to
confidently build, adapt, and contribute back to the project.
Whether it's improving availability, or performance, or even building advanced connectors,
every contribution will strengthen DiceDB for everyone.

Additionally, the AGPL is designed to ensure fairness. It prevents
Additionally, the BSD 3-Clause License is designed to ensure fairness. It prevents
the "freeloading" problem — where companies take open source software, modify it,
and deploy it as a proprietary service without contributing back.
With the AGPL, any modifications made while running DiceDB as a
With the BSD 3-Clause License, any modifications made while running DiceDB as a
service must also be shared under the same license. This keeps the playing
field level, ensuring that innovation remains a collaborative effort rather than being siloed.

## What this means for developers

Developers now have the freedom to innovate with DiceDB. You
can freely use DiceDB, modify it, and build applications tailored to your specific needs.
By sharing improvements under the AGPL, you're contributing to a broader ecosystem that evolves
By sharing improvements under the BSD 3-Clause License, you're contributing to a broader ecosystem that evolves
together. Every line of code written to build DiceDB is open for inspection, learning, and improvement.

## A glimpse into the future
Expand All @@ -60,7 +60,7 @@ the demands of AI-first applications - an approach poised to become the standard
in the coming decade. Furthermore, lightning-fast replica creation will reinforce
DiceDB's ability to handle production-grade workloads with exceptional reliability and resumability.

By going fully open source under AGPL 3.0, we're inviting the
By going fully open source under BSD 3-Clause License, we're inviting the
community to join us in building the caching backbone that powers the next generation of
applications. Together, we can push the boundaries of what's possible.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/updates/2024-12-19.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

**General Enhancements:**

- Switches license to GNU AGPL 3.0 (@JyotinderSingh) (#1372): Updates the license of DiceDB to GNU AGPL 3.0.
- Switches license to BSD 3-Clause License.
- Editing blog to keep things consistent (@arpitbbhayani) (#1376): Makes edits to the blog post for consistency.
- Updating OG Image (@arpitbbhayani) (#1375): Updates the Open Graph image to improve user experience.
- [CLEANUP] remove sql and query_manager (@apoorvyadav1111) (#1369): Removes unnecessary code in the sql package and `watchmanager.go`.
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const description =
<li>
open source under <a
target="_blank"
href="https://github.com/dicedb/dice?tab=AGPL-3.0-1-ov-file#readme"
>GNU AGPL 3.0</a
href="https://github.com/DiceDB/dice/blob/master/LICENSE"
>BSD 3-Clause License</a
>
</li>
<li>
Expand Down
17 changes: 2 additions & 15 deletions examples/leaderboard-go/main.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package main

Expand Down
25 changes: 6 additions & 19 deletions examples/url-shortener/main.go
Original file line number Diff line number Diff line change
@@ -1,37 +1,24 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package main

import (
"context"
"encoding/json"
"os"
"fmt"

"os"

"log"
"net/http"

"github.com/dicedb/dicedb-go" // DiceDB Go SDK
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"github.com/dicedb/dicedb-go" // DiceDB Go SDK
)

type URL struct {
LongURL string `json:"long_url"`
LongURL string `json:"long_url"`
}

var db *dicedb.Client
Expand Down
17 changes: 2 additions & 15 deletions integration_tests/commands/http/append_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package http

Expand Down
17 changes: 2 additions & 15 deletions integration_tests/commands/http/bit_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package http

Expand Down
17 changes: 2 additions & 15 deletions integration_tests/commands/http/bloom_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package http

Expand Down
17 changes: 2 additions & 15 deletions integration_tests/commands/http/check_type_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package http

Expand Down
17 changes: 2 additions & 15 deletions integration_tests/commands/http/command_count_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package http

Expand Down
Loading

0 comments on commit 1fe6fa3

Please sign in to comment.