From 72822750eacef403135ad7413f654d40719fbd9f Mon Sep 17 00:00:00 2001 From: Thijs Klaver Date: Thu, 12 Feb 2026 11:40:04 +0100 Subject: [PATCH] Rename record type to cache_record type to fix compilation on Erlang 29.0 Erlang 29 (release candidate 1) doesn't allow built-in types (like record) to be redefined. --- lib/cachex/spec/validator.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cachex/spec/validator.ex b/lib/cachex/spec/validator.ex index da76368a..3100b5de 100644 --- a/lib/cachex/spec/validator.ex +++ b/lib/cachex/spec/validator.ex @@ -10,7 +10,7 @@ defmodule Cachex.Spec.Validator do import Cachex.Spec # internal spec to refer to each record type - @type record :: + @type cache_record :: Cachex.Spec.command() | Cachex.Spec.entry() | Cachex.Spec.expiration() @@ -31,7 +31,7 @@ defmodule Cachex.Spec.Validator do This will delegate each record type to a customized validation function. """ - @spec valid?(atom, record) :: boolean + @spec valid?(atom, cache_record) :: boolean # Validates a command specification record. #