From 804e596095f2b13faa1e0b5c3c3e8e3c8ff06273 Mon Sep 17 00:00:00 2001 From: dams Date: Mon, 24 Aug 2015 09:47:24 +0200 Subject: [PATCH] =?UTF-8?q?fix=20=C3=A9set=C3=A9=20documentation=20as=20pe?= =?UTF-8?q?r=20Emanuele=20Tomasi=20=20suggestion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Redis.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Redis.pm b/lib/Redis.pm index 31eb9cc..304053a 100644 --- a/lib/Redis.pm +++ b/lib/Redis.pm @@ -1685,9 +1685,11 @@ Set the value and expiration in milliseconds of a key (see Lset(key, value, [EX seconds], [PX milliseconds], [NX|XX]) + $r->set(key, value, ['EX', seconds], ['PX', milliseconds], ['NX'|'XX']) -Set the string value of a key (see L) +Set the string value of a key (see L). Example: + + $r->set('key', 'test', 'EX', 60, 'NX') =head2 setbit