Skip to content

set and expire api diffrent handle to 'expire time' param #2178

@lvsoso

Description

@lvsoso

expire:

def expire(

set:
raise DataError("ex must be datetime.timedelta or int")

The set api ex should be a interger, but expire's time can use a string(integer in string type) as input.

It make me confusing. Both can also accept string type is more convenient.

Metadata

Metadata

Assignees

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