diff --git a/CHANGELOG.md b/CHANGELOG.md index c2647774..4bffdcbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,29 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v2.5.2](https://github.com/cabol/nebulex/tree/v2.5.2) (2023-07-14) + +[Full Changelog](https://github.com/cabol/nebulex/compare/v2.5.1...v2.5.2) + +**Closed issues:** + +- Replicated adapter syncing during rolling deployment. + [#209](https://github.com/cabol/nebulex/issues/209) +- Ambiguity regarding ttl and `gc_interval` relation. + [#208](https://github.com/cabol/nebulex/issues/208) +- Seeing Nebulex.RPCError during deployments with partitioned adapter. + [#206](https://github.com/cabol/nebulex/issues/206) +- Random `:erpc`, `:timeout` with partitioned get. + [#202](https://github.com/cabol/nebulex/issues/202) +- Processes reading from cache blocked by generational gc process. + [#197](https://github.com/cabol/nebulex/issues/197) + +**Merged pull requests:** + +- Delay flushing ets table to avoid blocking processes using it. + [#210](https://github.com/cabol/nebulex/pull/210) + ([szajbus](https://github.com/szajbus)) + ## [v2.5.1](https://github.com/cabol/nebulex/tree/v2.5.1) (2023-05-27) [Full Changelog](https://github.com/cabol/nebulex/compare/v2.5.0...v2.5.1) diff --git a/guides/creating-new-adapter.md b/guides/creating-new-adapter.md index 64b02e2d..6daca250 100644 --- a/guides/creating-new-adapter.md +++ b/guides/creating-new-adapter.md @@ -23,7 +23,7 @@ Now let's modify `mix.exs` so that we could fetch Nebulex repository. defmodule NebulexMemoryAdapter.MixProject do use Mix.Project - @nbx_vsn "2.5.0" + @nbx_vsn "2.5.2" @version "0.1.0" def project do diff --git a/lib/nebulex/adapters/local.ex b/lib/nebulex/adapters/local.ex index 278af741..eb0cf3ff 100644 --- a/lib/nebulex/adapters/local.ex +++ b/lib/nebulex/adapters/local.ex @@ -87,6 +87,10 @@ defmodule Nebulex.Adapters.Local do the timeout used when the cache starts and there are few entries or the consumed memory is near to `0`. Defaults to `600_000` (10 minutes). + * `:gc_flush_delay` - If it is set, an integer > 0 is expected defining the + delay in milliseconds before objects from the oldest generation are + flushed. Defaults to `10_000` (10 seconds). + ## Usage `Nebulex.Cache` is the wrapper around the cache. We can define a diff --git a/mix.exs b/mix.exs index 97aebe3c..69b84f51 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule Nebulex.MixProject do use Mix.Project @source_url "https://github.com/cabol/nebulex" - @version "2.5.1" + @version "2.5.2" def project do [