From 450bad13f8f5da5344d2039dde364cc06d53b3ff Mon Sep 17 00:00:00 2001 From: Zereth <70236765+o5zereth@users.noreply.github.com> Date: Wed, 29 Oct 2025 10:55:54 -0400 Subject: [PATCH] Allow cache for ReferenceHub contentGetter --- RueI/API/Elements/CachedElement.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RueI/API/Elements/CachedElement.cs b/RueI/API/Elements/CachedElement.cs index 7285a18..9516b38 100644 --- a/RueI/API/Elements/CachedElement.cs +++ b/RueI/API/Elements/CachedElement.cs @@ -26,6 +26,18 @@ public CachedElement(float position, TimeSpan cacheTime, Func contentGet this.CacheTime = cacheTime; } + /// + /// Initializes a new instance of the class. + /// + /// A indicating how long to store cached text before regenerating. + /// + /// + public CachedElement(float position, TimeSpan cacheTime, Func contentGetter) + : base(position, contentGetter) + { + this.CacheTime = cacheTime; + } + /// /// Gets a indicating how long data should be cached for before it is regenerated. ///