From 8497cd3863dcd727396b9861d688040d4525e859 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 6 Oct 2018 23:30:11 +0200 Subject: [PATCH] More consistent naming --- platypush/plugins/variable.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/variable.py b/platypush/plugins/variable.py index 68ac01e198..92ee103a27 100644 --- a/platypush/plugins/variable.py +++ b/platypush/plugins/variable.py @@ -148,12 +148,18 @@ class VariablePlugin(Plugin): @action - def expire(self, key, expiration): + def expire(self, name, expire): """ Set a variable expiration on Redis + + :param name: Variable name + :type name: str + + :param expire: Expiration time in seconds + :type expire: int """ - return self.redis_plugin.expire(key, expiration) + return self.redis_plugin.expire(name, expire) # vim:sw=4:ts=4:et: