Skip to content

Commit 9ca95c8

Browse files
committed
Overall updates
1 parent 84b3e42 commit 9ca95c8

File tree

3 files changed

+36
-21
lines changed

3 files changed

+36
-21
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 13 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'
39-
- elixir: 1.14.x
40-
otp: 23.x
41-
os: 'ubuntu-20.04'
34+
# - elixir: 1.14.x
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).

0 commit comments

Comments
 (0)