close
Skip to content

cache nbytes issues #138

@superTruth

Description

@superTruth

In the groupcache.go func (c *cache) add(key string, value ByteView).
"c.nbytes += int64(len(key)) + int64(value.Len())"

If the key has already exist, the nbytes calaculate will wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions