Skip to content

Commit a8621a2

Browse files
committed
Improve docs
1 parent 01526df commit a8621a2

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed

CHANGELOG.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Changelog
22

3-
## [v3.0.0-rc.1](https://github.com/elixir-nebulex/nebulex_distributed/tree/v3.0.0-rc.1) (2025-05-11)
4-
5-
[Full Changelog](https://github.com/elixir-nebulex/nebulex_distributed/compare/2c6188ebb9a482cd75a97b6abdb2feddcfb189c9...v3.0.0-rc.1)
3+
## [v3.0.0-rc.1](https://github.com/elixir-nebulex/nebulex_distributed/tree/v3.0.0-rc.1) (2025-06-07)
4+
> [Full Changelog](https://github.com/elixir-nebulex/nebulex_distributed/compare/2c6188ebb9a482cd75a97b6abdb2feddcfb189c9...v3.0.0-rc.1)
65
76
### Enhancements
87

@@ -19,6 +18,9 @@
1918

2019
### Backwards incompatible changes
2120

21+
- [Nebulex.Distributed] `Nebulex.Distributed` requires Erlang/OTP 25 or later.
22+
- [Nebulex.Distributed.RPC] The usage of async tasks for the RPC calls has been
23+
removed (for OTP < 23). The new `Nebulex.Distributed.RPC` module uses `:erpc`.
2224
- [Nebulex.Adapters.Multilevel] Option `:model` is no longer supported. Please
2325
use the option `:inclusion_policy` instead.
2426
- [Nebulex.Adapters.Multilevel] The previous extended function `model/0,1` has
@@ -28,8 +30,6 @@
2830
adapter uses `ExHashRing` for key distribution under-the-hood.
2931
- [Nebulex.Adapters.Partitioned] The option `:join_timeout` is no longer
3032
supported.
31-
- [Nebulex.Distributed.RPC] The usage of async tasks for the RPC calls has been
32-
removed (for OTP < 23). The new `Nebulex.Distributed.RPC` module uses `:erpc`.
3333

3434
### Closed issues
3535

@@ -39,6 +39,3 @@
3939
[#2](https://github.com/elixir-nebulex/nebulex_distributed/issues/2)
4040
- Upgrade to Nebulex v3.0.0
4141
[#1](https://github.com/elixir-nebulex/nebulex_distributed/issues/1)
42-
43-
44-
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ cache topologies, but this feature will depend on the adapters. Here is where
1515
**"Nebulex Distributed"** comes in. It provides the following adapters to set up
1616
distributed topologies:
1717

18-
* `Nebulex.Adapters.Multilevel` - Multi-level distributed cache topology.
1918
* `Nebulex.Adapters.Partitioned` - Partitioned cache topology.
19+
* `Nebulex.Adapters.Multilevel` - Multi-level distributed cache topology.
2020
* `Nebulex.Adapters.Replicated` - Replicated cache topology (**WIP!**).
2121

2222
These adapters work more as wrappers for an existing local adapter and provide
@@ -36,6 +36,10 @@ def deps do
3636
end
3737
```
3838

39+
See the [online documentation][online_docs] for more information.
40+
41+
[online_docs]: http://hexdocs.pm/nebulex_distributed
42+
3943
## Partitioned cache topology example
4044

4145
You can define a partitioned cache as follows:
@@ -136,10 +140,6 @@ def start(_type, _args) do
136140
]
137141
```
138142

139-
See the [online documentation][online_docs] for more information.
140-
141-
[online_docs]: http://hexdocs.pm/nebulex_distributed
142-
143143
## Testing
144144

145145
Since this adapter uses support modules and shared tests from `Nebulex`,

lib/nebulex/adapters/multilevel.ex

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,19 @@ defmodule Nebulex.Adapters.Multilevel do
229229
]
230230
}
231231
232-
## Caveats of multi-level adapter
232+
## Extended API
233+
234+
This adapter provides some additional convenience functions to the
235+
`Nebulex.Cache` API.
236+
237+
### `inclusion_policy/0,1`
238+
239+
Returns the inclusion policy of the cache.
240+
241+
iex> MyCache.inclusion_policy()
242+
:inclusive
243+
244+
## CAVEATS
233245
234246
Because this adapter reuses other existing/configured adapters, it inherits
235247
all their limitations too. Therefore, it is highly recommended to check the

lib/nebulex/adapters/partitioned.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ defmodule Nebulex.Adapters.Partitioned do
308308
309309
MyCache.leave_cluster()
310310
311-
## Caveats of partitioned adapter
311+
## CAVEATS
312312
313313
For `c:Nebulex.Cache.get_and_update/3` and `c:Nebulex.Cache.update/4`,
314314
they both have a parameter that is the anonymous function, and it is compiled

0 commit comments

Comments
 (0)