Skip to content

Investigate alternatives to caffeine cache key AnyRef type constraint #603

@lewisjkl

Description

@lewisjkl

The Caffeine cache builder requires that the key and value types of the cache extend Object. In Scala this is analogous to AnyRef. To make scalacache compatible, I've added a type constraint on the key (K <: AnyRef). The strange thing is that this only seems to be necessary on Scala 2.12 and not on 2.13 or 3.

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