Closed dierbei closed 2 weeks ago
Hi @dierbei . Thanks for asking.
foyer uses a sharding cache. The each shard splits itd own capacity from the total capacity to reduce sync overhead.
With a capacity lower than the shards, each shard cannot get enough capacity and caused thr problem.
For your case, you need to set the shards to 1.
I think I can refine yhe builder to give a warning in this case.
@MrCroxx Cool, changing shards to 1 fixed the problem;
Good to hear that. 🙌
Let me open an iusse for the warning and more reasonable shard config.
I have nested the
foryer
using a struct but when I do theunit test
, I getNone
value, this is confusing me. please help me, thanks!error msg: