python-memcached icon indicating copy to clipboard operation
python-memcached copied to clipboard

Client.set "time" allow timedelta parameter type

Open tbobm opened this issue 7 years ago • 1 comments

Maybe directly accepting datetime.timedelta variables as time parameter (see Client) could be great, in addition to the standard int or unix timestamp value.

It would only require to check the type of the variable, and get the delta.total_seconds() value.

tbobm avatar Jun 26 '18 10:06 tbobm

Yeah it would be a great idea! Thanks for the PR

Yokii908 avatar Jun 27 '18 10:06 Yokii908