Skip to content

Caffeine cache metrics don't work with caches created via spring.cache.cache-names #23047

Closed
@izeye

Description

@izeye

Caffeine cache metrics don't work with caches created via spring.cache.cache-names as the caches don't seem to record statistics.

See https://github.com/izeye/spring-boot-throwaway-branches/tree/cache-caffeine for a sample project to reproduce this.

If a custom Caffeine bean with recordStats() is provided, the metrics work.

See https://github.com/izeye/spring-boot-throwaway-branches/tree/cache-caffeine-custom for an updated one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions