robinson
A single value thread-safe cache for any value type.
Minimalistic implementation is used, based on Go generics. Therefore the cache is strongly typed. Once created, the cache allows to set only the type that was used to create cache.
The cache is error-free.
value := 123
crusoe := NewCrusoe[int]()
crusoe.Set(value)
cacheValue := crusoe.Get()