Skip to content

shared.DICT and expiration time #552

Closed
@bungle

Description

@bungle

I would like to see a way to retrieve and set shared dictionary expiration time.

E.g.

value, flags, exptime = ngx.shared.DICT:get(key)
-- it would be nicer to have same order as in set (but that would break bc):
value, exptime, flags = ngx.shared.DICT:get(key)

Or

exptime = ngx.shared.DICT:expires(key)

And

success, err = ngx.shared.DICT:expire(key, exptime)

Does it make sense or is it unneccessarely difficult and bloat?

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