Description
Adds Ruby 3-compatible memoization helpers inspired by ActiveSupport::Memoizable. It is useful when repeated method results should be cached inside an object for performance.
Cached method results can become wrong when hidden inputs change. Avoid memoizing permission checks, user-specific data, or values that depend on time unless invalidation is explicit.