Skip to content

I think it would be a great idea if one can set expire time for the key of hash map object #14447

@yishusheng

Description

@yishusheng

I heared of the story that one programmer of China executed the command 'keys *' on production and ther server stopped offer service for multi hours, because there are so many keys and the server can not handle these. So it went down.
In order to avoid this problem occur in my new web project, I tried using hashmap data structure instead of string data structure. But things turns out to be disappointed thad I can not set expiration times for keys of hash map object.Can you guys add this function or property. I would appreciate it if you have a more excellent ideas to solve this.Thank you.

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