Skip to content

Either support or error when items_capacity=1 #105

@dcherian

Description

@dcherian

I have a silly workload where I really just wanted a cache size of 1. However this doesn't work since the shards end up having a capacity of 0. It turns out the smallest number that can work is 2. I think the library should either round up 1 to 2 or raise an error to prevent this footgun.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions