Closed GoldieLocks89 closed 6 months ago
Nope. It's a misleading name, the thing actually holds milliseconds.
https://learn.microsoft.com/en-us/dotnet/api/system.environment.tickcount64?view=net-8.0
Environment.TickCount64 Property Gets the number OF MILLISECONDS elapsed since the system started.
https://github.com/jitbit/FastCache/blob/2a016db71fd766a49496d927c553fafec6a152a3/FastCache/FastCache.cs#L247
Isn't there a bug here? You're adding ttl.TotalMilliseconds to the current tick count, shouldn't you be adding ttl.Ticks?