Skip to content

[Optimize]add generics for CacheBuilder #7487

@onewe

Description

@onewe

I think some methods of the CacheBuilder need to add the generics.

for example:

// CacheBuilder#builder:51
    public static CacheBuilder builder() {
        return new CacheBuilder();
    }

and here:

// CacheBuilder#builder:58
 public CacheBuilder expireNanos(long duration, TimeUnit unit) {
        checkExpireNanos(duration, unit);
        this.expireNanos = unit.toNanos(duration);
        return this;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions