Skip to content

Commit 7a9b7b7

Browse files
committed
Overall updates
1 parent 84b3e42 commit 7a9b7b7

File tree

4 files changed

+39
-24
lines changed

4 files changed

+39
-24
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,18 @@ jobs:
2222
- elixir: 1.18.x
2323
otp: 27.x
2424
os: 'ubuntu-latest'
25-
style: true
25+
lint: true
2626
coverage: true
27-
sobelow: true
2827
dialyzer: true
29-
doctor: true
3028
- elixir: 1.17.x
31-
otp: 26.x
32-
os: 'ubuntu-latest'
33-
- elixir: 1.16.x
34-
otp: 26.x
29+
otp: 27.x
3530
os: 'ubuntu-latest'
36-
- elixir: 1.15.x
31+
- elixir: 1.17.x
3732
otp: 25.x
3833
os: 'ubuntu-latest'
3934
- elixir: 1.14.x
40-
otp: 23.x
41-
os: 'ubuntu-20.04'
35+
otp: 24.x
36+
os: 'ubuntu-latest'
4237

4338
env:
4439
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
@@ -86,14 +81,22 @@ jobs:
8681
mix deps.get
8782
if: ${{ steps.mix-cache.outputs.cache-hit != 'true' }}
8883

89-
- name: Compile code
84+
- name: Compile deps
85+
run: mix deps.compile
86+
87+
- name: Check unused dependencies
88+
run: mix deps.unlock --check-unused
89+
if: ${{ matrix.lint }}
90+
91+
- name: Compile lint
9092
run: mix compile --warnings-as-errors
93+
if: ${{ matrix.lint }}
9194

9295
- name: Run style and code consistency checks
9396
run: |
9497
mix format --check-formatted
9598
mix credo --strict
96-
if: ${{ matrix.style }}
99+
if: ${{ matrix.lint }}
97100

98101
- name: Run tests
99102
run: |

LICENSE renamed to LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MIT License
1+
# MIT License
22

33
Copyright (c) 2024 Carlos Andres Bolaños R.A.
44

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@
44
[Nebulex]: https://github.com/cabol/nebulex
55

66
![CI](https://github.com/elixir-nebulex/nebulex_distributed/workflows/CI/badge.svg)
7-
[![Documentation](https://img.shields.io/badge/Documentation-ff69b4)](https://hexdocs.pm/nebulex_distributed)
8-
[![Hex Version](https://img.shields.io/hexpm/v/nebulex_distributed.svg)](https://hex.pm/packages/nebulex_distributed)
97
[![Codecov](https://codecov.io/gh/elixir-nebulex/nebulex_distributed/graph/badge.svg)](https://codecov.io/gh/elixir-nebulex/nebulex_distributed/graph/badge.svg)
8+
[![Hex Version](https://img.shields.io/hexpm/v/nebulex_distributed.svg)](https://hex.pm/packages/nebulex_distributed)
9+
[![Documentation](https://img.shields.io/badge/Documentation-ff69b4)](https://hexdocs.pm/nebulex_distributed)
1010

11-
See the [online documentation][online_docs] for more information.
11+
## About
1212

13-
[online_docs]: https://hexdocs.pm/nebulex_distributed/
13+
One of the goals of Nebulex is also to provide the ability to set up distributed
14+
cache topologies, but this feature will depend on the adapters. Here is where
15+
**"Nebulex Distributed"** comes in. It provides the following adapters to set up
16+
distributed topologies:
17+
18+
* `Nebulex.Adapters.Partitioned` - Partitioned cache topology.
19+
* `Nebulex.Adapters.Multilevel` - Multi-level distributed cache topology.
20+
21+
These adapters work more as wrappers for an existing local adapter and provide
22+
the distributed topology on top of it. You can optionally set the adapter for
23+
the primary cache storage with the option `:primary_storage_adapter`.
1424

1525
## Installation
1626

@@ -19,7 +29,7 @@ Add `:nebulex_distributed` to your list of dependencies in `mix.exs`:
1929
```elixir
2030
def deps do
2131
[
22-
{:nebulex_distributed, "~> 3.0"}
32+
{:nebulex_distributed, "~> 3.0.0-rc.0"}
2333
]
2434
end
2535
```
@@ -67,6 +77,8 @@ end
6777

6878
See the [online documentation][online_docs] for more information.
6979

80+
[online_docs]: https://hexdocs.pm/nebulex_distributed/
81+
7082
## Testing
7183

7284
Since this adapter uses support modules and shared tests from `Nebulex`,
@@ -116,7 +128,7 @@ the directory [benchmarks](./benchmarks).
116128
To run a benchmark test you have to run:
117129

118130
```
119-
$ MIX_ENV=test mix run benchmarks/{BENCH_TEST_FILE}
131+
$ MIX_ENV=test mix run benchmarks/BENCH_TEST_FILE
120132
```
121133

122134
Where `BENCH_TEST_FILE` can be any of:
@@ -144,4 +156,4 @@ all checks run successfully.
144156

145157
Copyright (c) 2024 Carlos Andres Bolaños R.A.
146158

147-
`Nebulex.Adapters.Local` source code is licensed under the [MIT License](LICENSE).
159+
`nebulex_distributed` source code is licensed under the [MIT License](LICENSE).

mix.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
%{
2-
"benchee": {:hex, :benchee, "1.3.1", "c786e6a76321121a44229dde3988fc772bca73ea75170a73fd5f4ddf1af95ccf", [:mix], [{:deep_merge, "~> 1.0", [hex: :deep_merge, repo: "hexpm", optional: false]}, {:statistex, "~> 1.0", [hex: :statistex, repo: "hexpm", optional: false]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "76224c58ea1d0391c8309a8ecbfe27d71062878f59bd41a390266bf4ac1cc56d"},
2+
"benchee": {:hex, :benchee, "1.4.0", "9f1f96a30ac80bab94faad644b39a9031d5632e517416a8ab0a6b0ac4df124ce", [:mix], [{:deep_merge, "~> 1.0", [hex: :deep_merge, repo: "hexpm", optional: false]}, {:statistex, "~> 1.0", [hex: :statistex, repo: "hexpm", optional: false]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "299cd10dd8ce51c9ea3ddb74bb150f93d25e968f93e4c1fa31698a8e4fa5d715"},
33
"benchee_html": {:hex, :benchee_html, "1.0.1", "1e247c0886c3fdb0d3f4b184b653a8d6fb96e4ad0d0389267fe4f36968772e24", [:mix], [{:benchee, ">= 0.99.0 and < 2.0.0", [hex: :benchee, repo: "hexpm", optional: false]}, {:benchee_json, "~> 1.0", [hex: :benchee_json, repo: "hexpm", optional: false]}], "hexpm", "b00a181af7152431901e08f3fc9f7197ed43ff50421a8347b0c80bf45d5b3fef"},
44
"benchee_json": {:hex, :benchee_json, "1.0.0", "cc661f4454d5995c08fe10dd1f2f72f229c8f0fb1c96f6b327a8c8fc96a91fe5", [:mix], [{:benchee, ">= 0.99.0 and < 2.0.0", [hex: :benchee, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "da05d813f9123505f870344d68fb7c86a4f0f9074df7d7b7e2bb011a63ec231c"},
55
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
66
"cachex": {:hex, :cachex, "4.0.4", "192b5a34ae7f2c866cf835d796005c31ccf65e50ee973fbbbda6c773c0f40322", [:mix], [{:eternal, "~> 1.2", [hex: :eternal, repo: "hexpm", optional: false]}, {:ex_hash_ring, "~> 6.0", [hex: :ex_hash_ring, repo: "hexpm", optional: false]}, {:jumper, "~> 1.0", [hex: :jumper, repo: "hexpm", optional: false]}, {:sleeplocks, "~> 1.1", [hex: :sleeplocks, repo: "hexpm", optional: false]}, {:unsafe, "~> 1.0", [hex: :unsafe, repo: "hexpm", optional: false]}], "hexpm", "a0417593fcca4b6bd0330bb3bbd507c379d5287213ab990dbc0dd704cedede0a"},
7-
"credo": {:hex, :credo, "1.7.11", "d3e805f7ddf6c9c854fd36f089649d7cf6ba74c42bc3795d587814e3c9847102", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "56826b4306843253a66e47ae45e98e7d284ee1f95d53d1612bb483f88a8cf219"},
7+
"credo": {:hex, :credo, "1.7.12", "9e3c20463de4b5f3f23721527fcaf16722ec815e70ff6c60b86412c695d426c1", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "8493d45c656c5427d9c729235b99d498bd133421f3e0a683e5c1b561471291e5"},
88
"deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"},
99
"dialyxir": {:hex, :dialyxir, "1.4.5", "ca1571ac18e0f88d4ab245f0b60fa31ff1b12cbae2b11bd25d207f865e8ae78a", [:mix], [{:erlex, ">= 0.2.7", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "b0fb08bb8107c750db5c0b324fa2df5ceaa0f9307690ee3c1f6ba5b9eb5d35c3"},
1010
"earmark_parser": {:hex, :earmark_parser, "1.4.44", "f20830dd6b5c77afe2b063777ddbbff09f9759396500cdbe7523efd58d7a339c", [:mix], [], "hexpm", "4778ac752b4701a5599215f7030989c989ffdc4f6df457c5f36938cc2d2a2750"},
@@ -22,9 +22,9 @@
2222
"makeup_elixir": {:hex, :makeup_elixir, "1.0.1", "e928a4f984e795e41e3abd27bfc09f51db16ab8ba1aebdba2b3a575437efafc2", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "7284900d412a3e5cfd97fdaed4f5ed389b8f2b4cb49efc0eb3bd10e2febf9507"},
2323
"makeup_erlang": {:hex, :makeup_erlang, "1.0.2", "03e1804074b3aa64d5fad7aa64601ed0fb395337b982d9bcf04029d68d51b6a7", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "af33ff7ef368d5893e4a267933e7744e46ce3cf1f61e2dccf53a111ed3aa3727"},
2424
"mimic": {:hex, :mimic, "1.11.2", "6449c3b0faee9eb95a86c50752cac4062aa002226128a6e656d020523df8b9e5", [:mix], [{:ham, "~> 0.2", [hex: :ham, repo: "hexpm", optional: false]}], "hexpm", "4856ce771c96e3d115b56f931499b2178246bbb314bcc1f80369dfda754c4912"},
25-
"nebulex": {:git, "https://github.com/cabol/nebulex.git", "46e412e0be3a32acf2abf27d882b8d406f151ebe", [branch: "v3.0.0-dev"]},
25+
"nebulex": {:git, "https://github.com/cabol/nebulex.git", "06369217ff41e839a958000975ce1aba8436be2b", [branch: "v3.0.0-dev"]},
2626
"nebulex_adapters_cachex": {:git, "https://github.com/cabol/nebulex_adapters_cachex.git", "8448ca8028e681072629715ccdc8d6907f2726d0", [branch: "v3.0.0-dev"]},
27-
"nebulex_local": {:git, "https://github.com/elixir-nebulex/nebulex_local.git", "1ae4a51817aa28ef2c443ab7e3f8862d29ec3550", [branch: "main"]},
27+
"nebulex_local": {:git, "https://github.com/elixir-nebulex/nebulex_local.git", "2f6834a656b32e39c8042fd9b9558b418ee9ffdb", [branch: "main"]},
2828
"nimble_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"},
2929
"nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"},
3030
"sleeplocks": {:hex, :sleeplocks, "1.1.3", "96a86460cc33b435c7310dbd27ec82ca2c1f24ae38e34f8edde97f756503441a", [:rebar3], [], "hexpm", "d3b3958552e6eb16f463921e70ae7c767519ef8f5be46d7696cc1ed649421321"},

0 commit comments

Comments
 (0)