Skip to content

Commit f57a8ce

Browse files
committed
Overall updates
1 parent 84b3e42 commit f57a8ce

File tree

3 files changed

+33
-20
lines changed

3 files changed

+33
-20
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: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
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+
One of the goals of Nebulex is also to provide the ability to set up distributed
12+
cache topologies, but this feature will depend on the adapters. Here is where
13+
**"Nebulex Distributed"** comes in. It provides the following adapters to set up
14+
distributed topologies:
1215

13-
[online_docs]: https://hexdocs.pm/nebulex_distributed/
16+
* `Nebulex.Adapters.Partitioned` - Partitioned cache topology.
17+
* `Nebulex.Adapters.Multilevel` - Multi-level distributed cache topology.
18+
19+
These adapters work more as wrappers for an existing local adapter and provide
20+
the distributed topology on top of it. You can optionally set the adapter for
21+
the primary cache storage with the option `:primary_storage_adapter`.
1422

1523
## Installation
1624

@@ -19,7 +27,7 @@ Add `:nebulex_distributed` to your list of dependencies in `mix.exs`:
1927
```elixir
2028
def deps do
2129
[
22-
{:nebulex_distributed, "~> 3.0"}
30+
{:nebulex_distributed, "~> 3.0.0-rc.0"}
2331
]
2432
end
2533
```
@@ -67,6 +75,8 @@ end
6775

6876
See the [online documentation][online_docs] for more information.
6977

78+
[online_docs]: https://hexdocs.pm/nebulex_distributed/
79+
7080
## Testing
7181

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

118128
```
119-
$ MIX_ENV=test mix run benchmarks/{BENCH_TEST_FILE}
129+
$ MIX_ENV=test mix run benchmarks/BENCH_TEST_FILE
120130
```
121131

122132
Where `BENCH_TEST_FILE` can be any of:
@@ -144,4 +154,4 @@ all checks run successfully.
144154

145155
Copyright (c) 2024 Carlos Andres Bolaños R.A.
146156

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

0 commit comments

Comments
 (0)