summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/PredisStore.php
diff options
context:
space:
mode:
authorMarco Ceppi <marco@ceppi.net>2013-09-03 06:47:39 -0700
committerMarco Ceppi <marco@ceppi.net>2013-09-03 06:47:39 -0700
commit6a3d8e2863886ea0e2186d9e5a31a6e97bf500d2 (patch)
tree8e6065fdfe95455fa6ae1eb22bb0873b0c6b79a3 /Auth/OpenID/PredisStore.php
parentd50036036d40805ef96607d0e67363b0ed72b88f (diff)
parentdc8fe289c785d9db4bb37f016eb5ee58ce18a2f8 (diff)
downloadphp-openid-6a3d8e2863886ea0e2186d9e5a31a6e97bf500d2.zip
php-openid-6a3d8e2863886ea0e2186d9e5a31a6e97bf500d2.tar.gz
php-openid-6a3d8e2863886ea0e2186d9e5a31a6e97bf500d2.tar.bz2
Merge pull request #105 from vmattila/predis-store
Fixed wrong expiration command (expiresat -> expireat)
Diffstat (limited to 'Auth/OpenID/PredisStore.php')
-rw-r--r--Auth/OpenID/PredisStore.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth/OpenID/PredisStore.php b/Auth/OpenID/PredisStore.php
index 595ecb6..7108c2f 100644
--- a/Auth/OpenID/PredisStore.php
+++ b/Auth/OpenID/PredisStore.php
@@ -77,8 +77,8 @@ class Auth_OpenID_PredisStore extends Auth_OpenID_OpenIDStore {
$expiration = $this->redis->get($expirationKey);
if (!$expiration || $newExpiration > $expiration) {
$this->redis->set($expirationKey, $newExpiration);
- $this->redis->expiresat($serverKey, $newExpiration);
- $this->redis->expiresat($expirationKey, $newExpiration);
+ $this->redis->expireat($serverKey, $newExpiration);
+ $this->redis->expireat($expirationKey, $newExpiration);
}
// save association itself, will automatically expire